330 |
|
}}); |
331 |
|
|
332 |
|
t.start(); |
333 |
< |
Thread.sleep(SHORT_DELAY_MS); |
333 |
> |
delay(SHORT_DELAY_MS); |
334 |
|
assertEquals(q.size(), size); |
335 |
|
q.take(); |
336 |
|
t.interrupt(); |
351 |
|
}}); |
352 |
|
|
353 |
|
t.start(); |
354 |
< |
Thread.sleep(SMALL_DELAY_MS); |
354 |
> |
delay(SMALL_DELAY_MS); |
355 |
|
t.interrupt(); |
356 |
|
t.join(); |
357 |
|
} |
383 |
|
}}); |
384 |
|
|
385 |
|
t.start(); |
386 |
< |
Thread.sleep(SHORT_DELAY_MS); |
386 |
> |
delay(SHORT_DELAY_MS); |
387 |
|
t.interrupt(); |
388 |
|
t.join(); |
389 |
|
} |
698 |
|
|
699 |
|
executor.execute(new CheckedRunnable() { |
700 |
|
public void realRun() throws InterruptedException { |
701 |
< |
Thread.sleep(SMALL_DELAY_MS); |
701 |
> |
delay(SMALL_DELAY_MS); |
702 |
|
q.put(one); |
703 |
|
}}); |
704 |
|
|