Skip to content

Conversation

@lidel
Copy link
Member

@lidel lidel commented Aug 18, 2025

The NewRandPort() function had a race condition where it would close a TCP listener after getting its port number, allowing parallel test goroutines to claim the same "available" port before it was actually used, causing "address already in use" errors like one in:

lidel added 2 commits August 18, 2025 20:54
Tests were failing intermittently. Disabling AutoTLS when WebSocket
transport is disabled appears to resolve the issue.
Track allocated ports globally to prevent conflicts
when tests run in parallel.
@lidel lidel requested a review from a team as a code owner August 18, 2025 19:57
@lidel lidel added the skip/changelog This change does NOT require a changelog entry label Aug 18, 2025
@lidel
Copy link
Member Author

lidel commented Aug 18, 2025

Merging as this is just making tests less flaky, so good to have before we start release builds.

@lidel lidel merged commit 4bafb22 into master Aug 18, 2025
16 checks passed
@lidel lidel deleted the fix/test-cli-transport-autotls branch August 18, 2025 20:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip/changelog This change does NOT require a changelog entry

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants