Repository navigation
test(module): control fixture timing in durable tests - #709
Merged
Merged
Conversation
This was referenced Oct 15, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
The durable tests can fail when background timers change their state before the next assertion. Energize can lose its granted rage, and Duel health can regenerate past one. The Distract test also waits for two short movement legs to overlap across separate CLI reads.
Pause regeneration and combat-log expiry in the energize and Duel fixtures. For Distract, start two nearby movement legs with controlled durations while creature ticks are paused, cast the real spell, then resume creature ticks. The test still checks the hold, expiry, patrol resumption and cancellation on Engagement.
The CI failures occurred in energize, Duel and Distract. This PR changes only test fixtures.
What you verified
combat_log,duel_killing_blowanddistractpassed against private SpacetimeDB instances.c8deddd5, including the full durable suite and Rust checks.What you did not verify
These fixtures do not establish real-client behavior. The Distract fixture seeds the initial movement legs; it checks their interruption and scheduled resumption, not random selection of the initial legs.
Model: GPT-6 Astra, using Codex through T3 Code. GPT-6.1 Sol independently diagnosed the energize and Duel races.