mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 08:14:09 -08:00
Trying to fix flaky test
This commit is contained in:
parent
60f8633acb
commit
1ea69b7d17
|
@ -39,14 +39,14 @@ public class ThreadTest {
|
|||
new Thread() {
|
||||
@Override public void run() {
|
||||
try {
|
||||
Thread.sleep(100);
|
||||
Thread.sleep(50);
|
||||
} catch (InterruptedException e) {
|
||||
}
|
||||
mainThread.interrupt();
|
||||
}
|
||||
}.start();
|
||||
try {
|
||||
Thread.sleep(300);
|
||||
Thread.sleep(500);
|
||||
fail("Exception expected");
|
||||
} catch (InterruptedException e) {
|
||||
assertEquals(Thread.currentThread(), mainThread);
|
||||
|
|
Loading…
Reference in New Issue
Block a user