fix illegal monitor test
This commit is contained in:
parent
5ee88c852e
commit
f4390801ca
|
@ -20,6 +20,8 @@ public class IllegalMonitorStateExceptionUnitTest {
|
||||||
|
|
||||||
senderThread.join(1000);
|
senderThread.join(1000);
|
||||||
receiverThread.join(1000);
|
receiverThread.join(1000);
|
||||||
|
|
||||||
|
Thread.sleep(2000);
|
||||||
|
|
||||||
assertEquals("test", receiver.getMessage());
|
assertEquals("test", receiver.getMessage());
|
||||||
assertFalse(sender.hasIllegalMonitorStateExceptionOccurred());
|
assertFalse(sender.hasIllegalMonitorStateExceptionOccurred());
|
||||||
|
|
Loading…
Reference in New Issue