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(test-flake): poll for result in TestRegistryDelete() to avoid race #3688

Merged
merged 1 commit into from
Sep 19, 2019

Conversation

bboreham
Copy link
Collaborator

Fixes #3209 (again)

This is a different race to last time: reading the result just once when they are written on a separate goroutine by WatchContainerUpdates was always a bit hopeful.

Remove the `runtime.GoSched()` that doesn't guarantee anything.
Copy link
Contributor

@fbarl fbarl left a comment

Choose a reason for hiding this comment

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

Nice fix, thanks! 👍

Copy link
Contributor

@qiell qiell left a comment

Choose a reason for hiding this comment

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

lgtm

@qiell qiell merged commit 4b6b12d into master Sep 19, 2019
@qiell qiell deleted the fix-testregdelete-flake branch September 19, 2019 11:09
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.

flaky test failure in RegistryDelete
3 participants