You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
tests/test_native_cdp_port.py::test_port_check_ignores_the_log_of_an_earlier_attempt fails at random in CI with DID NOT RAISE RuntimeError. It failed on PR #204 and PR #214, neither of which touches this code.
Cause
The stand-in server for the second attempt calls listen() and then exits. If the fake handshake runs in that short gap, native_cdp_browser gets a browser and the test sees no error.
Fix
Make that stand-in exit without listening, so the connection is always refused and the order is forced, the way the other tests here force theirs. Run the test repeatedly under CPU load to confirm.
Activity