Skip to content

test(jetsocat): stabilize jmux proxy cli tests#1723

Merged
Benoît Cortier (CBenoit) merged 1 commit intomasterfrom
test/fix-jetsocat-flaky-test
Mar 19, 2026
Merged

test(jetsocat): stabilize jmux proxy cli tests#1723
Benoît Cortier (CBenoit) merged 1 commit intomasterfrom
test/fix-jetsocat-flaky-test

Conversation

@CBenoit
Copy link
Member

@CBenoit Benoît Cortier (CBenoit) commented Mar 19, 2026

Make the async JMUX wait for listener readiness explicitly and use the tokio command variant consistently.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Stabilizes the jmux_proxy_write_hello_world integration test in the jetsocat CLI tests by removing timing- and platform-dependent listener startup assumptions (notably on Windows) while preserving the intended behavior.

Changes:

  • Convert jmux_proxy_write_hello_world to an async #[tokio::test] and switch subprocess spawning to jetsocat_tokio_cmd.
  • Replace fixed sleeps with explicit readiness checks via wait_for_port_bound for all listeners involved.
  • Close the read server’s stdin and disable proxy auto-detection on the final client invocation (--no-proxy).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

Make the async JMUX wait for listener readiness explicitly and use the
tokio command variant consistently.
@CBenoit Benoît Cortier (CBenoit) changed the title test(jetsocat): stabilize jmux proxy hello world test test(jetsocat): stabilize jmux proxy cli tests Mar 19, 2026
@CBenoit Benoît Cortier (CBenoit) enabled auto-merge (squash) March 19, 2026 06:00
@CBenoit Benoît Cortier (CBenoit) merged commit 76d0c93 into master Mar 19, 2026
40 checks passed
@CBenoit Benoît Cortier (CBenoit) deleted the test/fix-jetsocat-flaky-test branch March 19, 2026 11:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants