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

Fix flaky wait_closed test #6651

Merged
merged 1 commit into from
Aug 21, 2024
Merged

Fix flaky wait_closed test #6651

merged 1 commit into from
Aug 21, 2024

Conversation

dlon
Copy link
Member

@dlon dlon commented Aug 20, 2024

The test was inherently racy. The "process" exited immediately and the future would sometimes resolve before the close handle had the time to stop the monitor. PR fixes it by having the process "run forever".

Fix DES-1042.


This change is Reviewable

Copy link

linear bot commented Aug 20, 2024

Copy link
Contributor

@MarkusPettersson98 MarkusPettersson98 left a comment

Choose a reason for hiding this comment

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

Reviewed 1 of 1 files at r1, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved

The test is inherently racy because the 'process' closes immediately and
its future may resolve before the close handle stops the monitor
@dlon dlon force-pushed the fix-flaky-openvpn-test branch from b7b07ee to e20719f Compare August 21, 2024 16:05
@dlon dlon merged commit da185b0 into main Aug 21, 2024
47 checks passed
@dlon dlon deleted the fix-flaky-openvpn-test branch August 21, 2024 16:08
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