reduced test race

Signed-off-by: Greg Wilkins <gregw@webtide.com>
This commit is contained in:
Greg Wilkins 2018-05-18 10:20:47 +10:00
parent 252ab9facf
commit bf8dd121b0
1 changed files with 0 additions and 5 deletions

View File

@ -284,11 +284,6 @@ public class ExecuteProduceConsumeTest
// When we unblock t0, thread1 will see the idle,
t0.unblock();
// but because there was a pending execute it will try producing again
while(_producer==null)
Thread.yield();
Assert.assertEquals(thread0,_producer);
// and will see new tasks
final Task t1 = new Task(true);
_produce.add(t1);