Skip to content

test: cover guard race table directly - #25

Merged
shitianfang merged 1 commit into
loop-js:masterfrom
edenbuilds:codex/test-guard-race-table
Aug 30, 2026
Merged

test: cover guard race table directly#25
shitianfang merged 1 commit into
loop-js:masterfrom
edenbuilds:codex/test-guard-race-table

Conversation

@edenbuilds

Copy link
Copy Markdown
Contributor

Closes #8

Adds direct tests for the shared guard machine's race table:

  • a round timer interrupting a pending phase step
  • cancellation winning while the final step drains
  • budget cutoff after exactly one overshooting step
  • the configured consecutive-error retry cap

These tests exercise drivePhase and withErrorCap directly, complementing the existing whole-loop coverage without changing runtime behavior.

Verification:

  • bun run check
  • bun test (419 passed, 2 skipped live Claude smoke tests)

@shitianfang
shitianfang merged commit f1db584 into loop-js:master Aug 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

test: the guard race table gets direct tests

2 participants