Skip to content

Commit 9cc5390

Browse files
committed
Fix AdaptiveAllocationsScalerServiceTests.test_scaleDownToZero_whenNoRequests (elastic#137731)
1 parent 03b3a1a commit 9cc5390

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

x-pack/plugin/ml/src/test/java/org/elasticsearch/xpack/ml/inference/adaptiveallocations/AdaptiveAllocationsScalerServiceTests.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ public void test_scaleDownToZero_whenNoRequests() {
275275
inferenceAuditor,
276276
meterRegistry,
277277
true,
278-
ONE_SECOND,
278+
2 * ONE_SECOND,
279279
ATOMIC_SECOND,
280280
TWO_THOUSAND_MILLISECONDS
281281
);
@@ -295,7 +295,7 @@ public void test_scaleDownToZero_whenNoRequests() {
295295
return Void.TYPE;
296296
}).when(client).execute(eq(GetDeploymentStatsAction.INSTANCE), eq(new GetDeploymentStatsAction.Request("test-deployment")), any());
297297

298-
safeSleep(1500);
298+
safeSleep(2500);
299299

300300
verify(client, times(1)).threadPool();
301301
verify(client, times(1)).execute(eq(GetDeploymentStatsAction.INSTANCE), any(), any());
@@ -317,7 +317,7 @@ public void test_scaleDownToZero_whenNoRequests() {
317317
return Void.TYPE;
318318
}).when(client).execute(eq(UpdateTrainedModelDeploymentAction.INSTANCE), any(), any());
319319

320-
safeSleep(1000);
320+
safeSleep(2000);
321321

322322
verify(client, times(2)).threadPool();
323323
verify(client, times(1)).execute(eq(GetDeploymentStatsAction.INSTANCE), any(), any());

0 commit comments

Comments
 (0)