Skip to content

Commit 38bb50a

Browse files
stackiaclaude
andcommitted
fix(test): remove flaky "other port not reachable" assertion
The assertion that a randomly allocated port should not be reachable is prone to race conditions on CI with parallel test workers, as another process may bind to that port during the polling window. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 83015f4 commit 38bb50a

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

tools/e2e/test_config.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,6 @@ def test_listen_port(self, r2h_binary):
5555
r2h.start()
5656
# Port should be reachable
5757
assert wait_for_port(port)
58-
# Different port should NOT be reachable
59-
other_port = find_free_port()
60-
assert not wait_for_port(other_port, timeout=0.3)
6158
finally:
6259
r2h.stop()
6360

0 commit comments

Comments
 (0)