Skip to content

Use longer BusyExecIdle to avoid CI failures #2833

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

Merged
merged 1 commit into from
Apr 28, 2018

Conversation

jnm2
Copy link
Contributor

@jnm2 jnm2 commented Apr 28, 2018

Fixes #2831


Assert.That(() => sb.ToString(), Is.EqualTo("BusyExecIdle").After(200));
if (!countdown.Wait(10000)) Assert.Fail("Timed out.");
Copy link
Contributor Author

Choose a reason for hiding this comment

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

If I had just changed After, we would have an unnecessary 10 second wait on success. (I also avoid [Timeout] on tests when possible because thread aborts introduce inherent unreliability.)

Copy link
Member

Choose a reason for hiding this comment

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

Would this work using the polling functionality of DelayedConstraint? (E.g. After(10000,200))

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Seems to work great, thanks!

@jnm2 jnm2 force-pushed the jnm2/fix_busyexecidle_timeout branch from efda95b to 4e86b5d Compare April 28, 2018 16:56
@jnm2 jnm2 added this to the 3.11 milestone Apr 28, 2018
Copy link
Member

@ChrisMaddock ChrisMaddock left a comment

Choose a reason for hiding this comment

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

LGTM! 😄

@ChrisMaddock ChrisMaddock merged commit 3b7da93 into master Apr 28, 2018
@ChrisMaddock ChrisMaddock deleted the jnm2/fix_busyexecidle_timeout branch April 28, 2018 19:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants