tests/eoc: use standard NPC in the EOC_run_eocs test #77950
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
None
Purpose of change
The
EOC_run_eocs
test uses a dummy npc with no id that breaks assumptions in other parts of the code, as seen in this job run: that mission is assigned with no ID, but when this dummy NPC dies it fails the mission because its ID matches, then the (pointless) debug message shows up because we've already cleared missions on the avatar.Describe the solution
Use a standard test NPC
Describe alternatives you've considered
Robustify test infra to ensure there's no stale state for any test unit?
Testing
../build_lto/cata_test --rng-seed 1731840727 "~[slow] ~[.],starting_items"
doesn't trigger the errorWait for LTO job to finish.
Additional context
Perfect example of why we need LTO and ASan jobs to run earlier. It would have taken me <5 minutes to track this down (instead of 2 hours) if CI had run the LTO job for #77359