Skip to content

Commit

Permalink
Use Thread.yield(), since Thread.sleep(0) is system-dependent
Browse files Browse the repository at this point in the history
  • Loading branch information
David McGuire committed Apr 17, 2015
1 parent 82ee46d commit 70ee310
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ class ReceiverSuite extends TestSuiteBase with Timeouts with Serializable {
blockGenerator.addData(count)
generatedData += count
count += 1
Thread.sleep(0)
Thread.`yield`()
}
blockGenerator.stop()

Expand Down

0 comments on commit 70ee310

Please sign in to comment.