Merge pull request #10302 from eugenp/fix-test

fix illegal monitor test
This commit is contained in:
Loredana Crusoveanu 2020-12-03 12:54:48 +02:00 committed by GitHub
commit 157acf9f78
1 changed files with 2 additions and 0 deletions

View File

@ -20,6 +20,8 @@ public class IllegalMonitorStateExceptionUnitTest {
senderThread.join(1000);
receiverThread.join(1000);
Thread.sleep(2000);
assertEquals("test", receiver.getMessage());
assertFalse(sender.hasIllegalMonitorStateExceptionOccurred());