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

test: reduce noise from flaky test #122

Merged
merged 1 commit into from
Apr 5, 2021
Merged

test: reduce noise from flaky test #122

merged 1 commit into from
Apr 5, 2021

Conversation

jenhagg
Copy link
Collaborator

@jenhagg jenhagg commented Apr 5, 2021

Purpose

The object being tested involves spawning a process, along with a background thread, so inherently has a race condition. This has been historically semi stable but to prevent noise we have it sleep, to give the background thread some extra time. The duration is arbitrary, just didn't want to make it too long.

Testing

Ideally we would measure the failure rate over time, but this will have to be manually observed until there is a way to do that.

Time to review

30 sec

@jenhagg jenhagg self-assigned this Apr 5, 2021
@jenhagg jenhagg requested a review from danielolsen April 5, 2021 23:06
Copy link
Contributor

@danielolsen danielolsen left a comment

Choose a reason for hiding this comment

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

Fingers crossed.

Copy link
Collaborator

@rouille rouille left a comment

Choose a reason for hiding this comment

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

Makes sense

@jenhagg jenhagg merged commit 95d36f3 into develop Apr 5, 2021
@jenhagg jenhagg deleted the jon/sleep branch April 5, 2021 23:12
@jenhagg jenhagg added this to the CherryBlossoms milestone Apr 6, 2021
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.

None yet

3 participants