Skip to content

Harden mid-wait routable test against event-injection race - #699

Merged
TheGreatAxios merged 1 commit into
mainfrom
cl-7543-harden-mid-wait-test
Sep 10, 2026
Merged

Harden mid-wait routable test against event-injection race#699
TheGreatAxios merged 1 commit into
mainfrom
cl-7543-harden-mid-wait-test

Conversation

@TheGreatAxios

Copy link
Copy Markdown
Contributor

Summary

Test plan

  • bun test packages/agent-directory/src/one-shot-prompt.test.ts (full file, 10/10)
  • Mid-wait case run 3x consecutively
  • CI build-test shards green

Follow-up to CL-7543 / #698.

The mid-wait case used a fixed 10ms delay before injecting reply
events. Under CI load the poll loop sometimes saw only 3 checks before
those events settled the run early, failing `toBeGreaterThan(3)` even
though the product path was fine. Gate routability behind an explicit
flag, wait for ≥3 polls then the retried send, and only then inject
replies.
@linear-code

linear-code Bot commented Sep 10, 2026

Copy link
Copy Markdown

CL-7543

@TheGreatAxios
TheGreatAxios merged commit cdde584 into main Sep 10, 2026
24 checks passed
@TheGreatAxios
TheGreatAxios deleted the cl-7543-harden-mid-wait-test branch September 10, 2026 06:18
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.

1 participant