[JAVA-8353] Increase timeout to 10s

This commit is contained in:
Haroon Khan 2021-11-21 21:24:02 +00:00
parent 48a1cc5624
commit afcc730a66

View File

@ -25,7 +25,7 @@ public class IllegalMonitorStateExceptionUnitTest {
receiverThread.join(1000);
// we need to wait for enough time so that sender has had a chance to send the data
assertTimeout(Duration.ofSeconds(5), () -> assertEquals("test", receiver.getMessage()));
assertTimeout(Duration.ofSeconds(10), () -> assertEquals("test", receiver.getMessage()));
assertFalse(sender.hasIllegalMonitorStateExceptionOccurred());
assertFalse(receiver.hasIllegalMonitorStateExceptionOccurred());
}