JAVA-19152 Increased the awaitility timeout for one more poll delay (#13975)
This commit is contained in:
parent
1fd15c9557
commit
1ff112228c
@ -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")));
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user