Skip to content

test: wait on the accepted-connection event in the replacement-handshake test - #201

Open
salty-flower wants to merge 1 commit into
raine:mainfrom
salty-flower:test/replacement-handshake-wait
Open

salty-flower wants to merge 1 commit into
raine:mainfrom
salty-flower:test/replacement-handshake-wait

Conversation

@salty-flower

Copy link
Copy Markdown
Contributor

cancellation_while_replacement_startup_is_blocked_aborts_request_state no longer fails spuriously on a loaded machine.

Why: the test waited at most two seconds for the replacement connection to reach its blocked handshake. Under scheduler load (a parallel cargo test next to other builds), startup can take longer than that → the timeout fires → the test fails although the code under test behaved correctly. The test now awaits the accepted-connection event itself. That event always arrives in a correct run, and a real hang still surfaces through the test harness.

What to check: that nothing else in the test relied on the two-second bound as an assertion.

Validation: cargo test providers::codex passes (427 tests); cargo fmt --check is clean.

🤖 Generated with Claude Code

…ake test

A two-second deadline made the regression fail under scheduler load.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ⚠️ Failed 2026-10-30T17:52:26.865142Z
We couldn’t complete this review. Comment @codex review to try again.
9c6bfe8 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

This branch has not been deployed

No deployments
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