fix: the tests and the formatting failing on main #3140
No reviewers
Labels
No labels
area/accessibility
area/audio
area/input
area/install
area/menu
area/mods
area/renderer
area/saves
area/tooling
area/upscaling
beanstalk: approved
beanstalk: failed
beanstalk: needs approval
beanstalk: running
beanstalk: tested
ci: approved
good first issue
gpu/amd
gpu/igpu
gpu/intel
gpu/nvidia
help wanted
kind
bug
kind
chore
kind
docs
kind
feature
kind
performance
kind
question
needs measurements
platform/linux
platform/macos
platform/steam-deck
platform/windows
preview
priority
critical
priority
high
priority
low
regression
risk
high
risk
low
risk
medium
status
blocked
status
confirmed
status
duplicate
status
invalid
status
needs-info
status
wontfix
ci: approved
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
MagicBeanDev/Longshot!3140
Loading…
Reference in a new issue
No description provided.
Delete branch "HumanBean/Longshot:fix/main-tests"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
mainhad a test that does not compile, two failing tests and an unformatted file. This fixes them.No behaviour changes.
game/mods/cheats/src/system_mod.rs: two empty lists in the inventory test have no type, so the crate's tests do notcompile. My mistake in #3069.
game/crates/modtool/src/service/tests.rs:a_mod_written_off_the_first_time_...expected an emulator mod writtendown off the first time. #3105's review changed that:
the first time, each mod keeps what it did (
record.rs's module text). The test now says so.website/tests/graphics-settings.test.ts: it rewrote the settings table's Profile line by its exact text, which hassince gained "(Minimum: Handheld)".
game/crates/game-core/src/video.rs:rustfmt.(The lint error this also fixed is already fixed on
main.)Testing
Tested: Linux. The
sysmod-cheatstests (59 passed),modtool'sservicetests (36 passed), the website tests(101 passed),
cargo clippy --workspace --all-targets --keep-going -- -D warnings(clean) andcargo fmt --check --all(clean). Nothing run in the game: the one change to code the game runs is formatting.
Still to test: None.
Measurements
Nothing to measure: tests and formatting.
Risks
Next to none; a revert is enough.
Checklist
Ready for review
main; the title is a Conventional Commit.mise run testpasses (any failure that also fails onmainis named). (run as its parts above, not whole)main, or Measurements says why there is nothing to measure.third_party/untouched; nothing GPL-incompatible.When it applies
tests/that reads changed source is updated, not weakened.Assisted-by:/Co-Authored-By:trailers.Ready to merge
main, measured again or a comment says why the numbers still hold.🤖 Generated with Claude Code
https://claude.ai/code/session_017vw8e2fJhRpDrY7pgVx6oJ
WIP: fix: the tests, the lint and the formatting failing on mainto WIP: fix: the tests and the formatting failing on main6fe6302be9c7e0a188e6WIP: fix: the tests and the formatting failing on mainto fix: the tests and the formatting failing on main