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