Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bbr: Fix test flakes #578

Merged
merged 1 commit into from
Aug 6, 2024
Merged

bbr: Fix test flakes #578

merged 1 commit into from
Aug 6, 2024

Conversation

matheusd
Copy link
Contributor

This fixes test flakes that happen due to timing of clock actions.

The tests involve multiple goroutines that access the current time of the clock, but it may happen that an Advance() call in the test happens before a read of the clock time to create a new timer, thus causing a test flake.

This issue is fixed by adding appropriate synchronization.

This fixes test flakes that happen due to timing of clock actions.

The tests involve multiple goroutines that access the current time of
the clock, but it may happen that an Advance() call in the test happens
before a read of the clock time to create a new timer, thus causing a
test flake.

This issue is fixed by adding appropriate synchronization.
Copy link
Collaborator

@lthibault lthibault left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great find. TY for the fix! This will be a crazy huge help when diving back into flow-control code.

@lthibault lthibault merged commit 049154c into capnproto:main Aug 6, 2024
0 of 4 checks passed
@matheusd matheusd deleted the fix-bbr branch August 7, 2024 10:06
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.

2 participants