Skip to content

Conversation

@GheisMohammadi
Copy link
Collaborator

The TestRequestManager_RemoveStream test was intermittently failing with an error indicating unexpected stream size (expected 2, got 3). This was caused by a race condition where the test checked the stream count immediately after removing a stream, but the removal event is processed asynchronously in the request manager's event loop. The fix adds a retry loop that waits up to 10 seconds for the stream removal to be fully processed before asserting the stream count, ensuring the asynchronous event has been handled before validation. This eliminates the flakiness and makes the test deterministic.

@GheisMohammadi GheisMohammadi self-assigned this Nov 17, 2025
@Frozen Frozen merged commit 4126c2a into dev Nov 18, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants