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

Stabilize yet another test #1797

Merged
3 commits merged into from
May 4, 2018
Merged

Stabilize yet another test #1797

3 commits merged into from
May 4, 2018

Conversation

MenschNestor
Copy link
Contributor

This fix addresses the build failure that occurred in https://travis-ci.org/Netflix/Hystrix/builds/370693316

The test assumed that the command actually had time to start executing. However, there's some code being executed before the executedInThread property is set to true in AbstractCommand. The timeout can occur during that phase, so it's possible for the test to fail under high load.

The fix adds a check to see whether the command had a chance to run, and only then asserts that it was executed on a thread.

I verified the fix by stopping the executing thread via a breakpoint just before the call to executionResult.setExecutedInThread(). The test fails without the fix under these circumstances, but succeeds with the fix in place.

@timbozo I hope this is the one that will get the master build green, but of course there may be more flaky tests.

@MenschNestor MenschNestor reopened this Apr 27, 2018
@ghost ghost merged commit 7f5a0af into Netflix:master May 4, 2018
This pull request was closed.
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.

1 participant