Skip to content

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
@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

2 participants