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

SAMZA-272, SAMZA-1440, SAMZA-1269: Fixed thread interrupt tests in TestExponentialSleepStrategy. #318

Closed
wants to merge 2 commits into from

Conversation

prateekm
Copy link
Contributor

@prateekm prateekm commented Oct 6, 2017

No description provided.

@prateekm
Copy link
Contributor Author

prateekm commented Oct 6, 2017

cc @vjagadish1989 @jmakes for review.

Copy link
Contributor

@jmakes jmakes left a comment

Choose a reason for hiding this comment

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

Looks ok. One suggestion below.

interruptee.interrupt
interruptee.join
interruptee.start()
latch.await()
Copy link
Contributor

Choose a reason for hiding this comment

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

Would prefer the following so the test doesn't hang

assertTrue("Latch timed out", latch.await(someHighNumber, someUnit))

@asfgit asfgit closed this in f8cce6e Oct 6, 2017
@prateekm prateekm deleted the ess-test-fix branch October 9, 2017 18:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants