JAVA-19152 Increased the awaitility timeout for one more poll delay (#13975)

This commit is contained in:
Anastasios Ioannidis
2023-05-09 12:55:49 +03:00
committed by GitHub
parent 1ff9457f67
commit 99d53af880

View File

@@ -32,8 +32,8 @@ public class RequestProcessorUnitTest {
String requestId = requestProcessor.processRequest();
Awaitility.await()
//The timeout value should be greater than the maximum time the request takes to complete
.atMost(2010, TimeUnit.MILLISECONDS)
//The timeout value should exceed the maximum time the request takes to complete, for the time amount of a poll (500 ms)
.atMost(2501, TimeUnit.MILLISECONDS)
.pollDelay(500, TimeUnit.MILLISECONDS)
.until(() -> requestProcessor.getStatus(requestId), not(equalTo("PROCESSING")));