Skip to content

Commit b1c4d0f

Browse files
jan-elasticelasticsearchmachine
andauthored
Increase wait time in AdaptiveAllocationsScalerServiceTests (elastic#135510) (elastic#135517)
* Increase wait time in AdaptiveAllocationsScalerServiceTests * [CI] Auto commit changes from spotless --------- Co-authored-by: elasticsearchmachine <[email protected]>
1 parent c27c77a commit b1c4d0f

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

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

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ public void test_scaleUp() {
201201
return Void.TYPE;
202202
}).when(client).execute(eq(GetDeploymentStatsAction.INSTANCE), eq(new GetDeploymentStatsAction.Request("test-deployment")), any());
203203

204-
safeSleep(1200);
204+
safeSleep(1500);
205205

206206
verify(client, times(1)).threadPool();
207207
verify(client, times(1)).execute(eq(GetDeploymentStatsAction.INSTANCE), any(), any());
@@ -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(1200);
298+
safeSleep(1500);
299299

300300
verify(client, times(1)).threadPool();
301301
verify(client, times(1)).execute(eq(GetDeploymentStatsAction.INSTANCE), any(), any());
@@ -418,7 +418,7 @@ public void test_noScaleDownToZero_whenRecentlyScaledUpByOtherNode() {
418418
return Void.TYPE;
419419
}).when(client).execute(eq(GetDeploymentStatsAction.INSTANCE), eq(new GetDeploymentStatsAction.Request("test-deployment")), any());
420420

421-
safeSleep(1200);
421+
safeSleep(1500);
422422

423423
verify(client, times(1)).threadPool();
424424
verify(client, times(1)).execute(eq(GetDeploymentStatsAction.INSTANCE), any(), any());
@@ -572,5 +572,4 @@ private StartTrainedModelDeploymentAction.TaskParams taskParams(int numAllocatio
572572
100L
573573
);
574574
}
575-
576575
}

0 commit comments

Comments
 (0)