Repository navigation
test: Give the poll retry test time for slow connections on Windows - #575
Merged
Merged
Conversation
jsonbailey
approved these changes
Nov 12, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
test_client_retries_poll_after_network_errorfails on every Windows job onfeat/10.x. The client is not initialized when the default 5 second start wait ends.Each network error closes the connection, so each retry opens a new one. On Windows, a new connection to
localhosttries::1first and takes about 2 seconds to fall back to IPv4. This test opens about three connections, so it runs past the start wait. The test now waits up to 20 seconds. It still returns as soon as the client initializes.Note
Overview
Fixes Windows CI flakiness in
test_client_retries_poll_after_network_errorby passingstart_wait=20toLDClient(default is 5s) and documenting why.The test simulates multiple poll failures that each tear down and reopen connections; on Windows, new localhost connections can spend ~2s on IPv6 before falling back to IPv4, so three retries can exceed the default startup timeout even though the client eventually initializes.
Reviewed by Cursor Bugbot for commit 88f68ba. Bugbot is set up for automated code reviews on this repo. Configure here.