Fix AsyncResultsServiceTests#testRetrieveFromMemoryWithExpiration (#60337)

This change ensures that the expiration time that is set in the test
is long enough to not be triggered by a slow execution.

Closes #60255
This commit is contained in:
Jim Ferenczi 2020-07-29 09:47:05 +02:00 committed by jimczi
parent 5eb04fb413
commit 578749a5e8
1 changed files with 1 additions and 1 deletions

View File

@ -154,7 +154,7 @@ public class AsyncResultsServiceTests extends ESSingleNodeTestCase {
TestTask task = (TestTask) taskManager.register("test", "test", new TestRequest("test request"));
try {
boolean shouldExpire = randomBoolean();
long expirationTime = System.currentTimeMillis() + randomLongBetween(1000, 10000) * (shouldExpire ? -1 : 1);
long expirationTime = System.currentTimeMillis() + randomLongBetween(100000, 1000000) * (shouldExpire ? -1 : 1);
task.setExpirationTime(expirationTime);
if (updateInitialResultsInStore) {