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:
parent
5eb04fb413
commit
578749a5e8
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue