Skip to content

Commit c4b8cc9

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

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
@@ -195,7 +195,7 @@ public void test_scaleUp() {
195195
return Void.TYPE;
196196
}).when(client).execute(eq(GetDeploymentStatsAction.INSTANCE), eq(new GetDeploymentStatsAction.Request("test-deployment")), any());
197197

198-
safeSleep(1200);
198+
safeSleep(1500);
199199

200200
verify(client, times(1)).threadPool();
201201
verify(client, times(1)).execute(eq(GetDeploymentStatsAction.INSTANCE), any(), any());
@@ -289,7 +289,7 @@ public void test_scaleDownToZero_whenNoRequests() {
289289
return Void.TYPE;
290290
}).when(client).execute(eq(GetDeploymentStatsAction.INSTANCE), eq(new GetDeploymentStatsAction.Request("test-deployment")), any());
291291

292-
safeSleep(1200);
292+
safeSleep(1500);
293293

294294
verify(client, times(1)).threadPool();
295295
verify(client, times(1)).execute(eq(GetDeploymentStatsAction.INSTANCE), any(), any());
@@ -412,7 +412,7 @@ public void test_noScaleDownToZero_whenRecentlyScaledUpByOtherNode() {
412412
return Void.TYPE;
413413
}).when(client).execute(eq(GetDeploymentStatsAction.INSTANCE), eq(new GetDeploymentStatsAction.Request("test-deployment")), any());
414414

415-
safeSleep(1200);
415+
safeSleep(1500);
416416

417417
verify(client, times(1)).threadPool();
418418
verify(client, times(1)).execute(eq(GetDeploymentStatsAction.INSTANCE), any(), any());
@@ -566,5 +566,4 @@ private StartTrainedModelDeploymentAction.TaskParams taskParams(int numAllocatio
566566
100L
567567
);
568568
}
569-
570569
}

0 commit comments

Comments
 (0)