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

mrboom: improve test reliability #47004

Merged
merged 1 commit into from
Nov 21, 2019
Merged

mrboom: improve test reliability #47004

merged 1 commit into from
Nov 21, 2019

Conversation

Bo98
Copy link
Member

@Bo98 Bo98 commented Nov 20, 2019

This should reduce the likelihood of a hang. It was consistently doing this on the High Sierra nodes so let's test that out.

The use of expect over read means it exits earlier when it finds what it needs - it previously may have waited until the application terminated. There's also a timeout value associated.

Now that we can get past read without hanging for long, I've added timeout functionality to the Process.wait as that that point we've got what we are looking for and don't care about much else. Give it a short 10 seconds and if it can't terminate itself, we'll force it.

I also muted the audio for the test.

@fxcoudert
Copy link
Member

Minor style concerns, but otherwise 👍

@Bo98 Bo98 mentioned this pull request Nov 21, 2019
10 tasks
@Bo98 Bo98 merged commit 58f480f into Homebrew:master Nov 21, 2019
@Bo98 Bo98 deleted the mrboom branch November 21, 2019 15:59
@lock lock bot added the outdated PR was locked due to age label Jan 1, 2020
@lock lock bot locked as resolved and limited conversation to collaborators Jan 1, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
outdated PR was locked due to age
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants