Skip to content

Commit 10c7367

Browse files
jan-elasticelasticsearchmachineprwhelan
authored
Increase wait time in AdaptiveAllocationsScalerServiceTests (#135510) (#135516)
* Increase wait time in AdaptiveAllocationsScalerServiceTests * [CI] Auto commit changes from spotless --------- Co-authored-by: elasticsearchmachine <[email protected]> Co-authored-by: Pat Whelan <[email protected]>
1 parent 8249339 commit 10c7367

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

196-
safeSleep(1200);
196+
safeSleep(1500);
197197

198198
verify(client, times(1)).threadPool();
199199
verify(client, times(1)).execute(eq(GetDeploymentStatsAction.INSTANCE), any(), any());
@@ -287,7 +287,7 @@ public void test_scaleDownToZero_whenNoRequests() {
287287
return Void.TYPE;
288288
}).when(client).execute(eq(GetDeploymentStatsAction.INSTANCE), eq(new GetDeploymentStatsAction.Request("test-deployment")), any());
289289

290-
safeSleep(1200);
290+
safeSleep(1500);
291291

292292
verify(client, times(1)).threadPool();
293293
verify(client, times(1)).execute(eq(GetDeploymentStatsAction.INSTANCE), any(), any());
@@ -354,7 +354,7 @@ public void test_noScaleDownToZero_whenRecentlyScaledUpByOtherNode() {
354354
return Void.TYPE;
355355
}).when(client).execute(eq(GetDeploymentStatsAction.INSTANCE), eq(new GetDeploymentStatsAction.Request("test-deployment")), any());
356356

357-
safeSleep(1200);
357+
safeSleep(1500);
358358

359359
verify(client, times(1)).threadPool();
360360
verify(client, times(1)).execute(eq(GetDeploymentStatsAction.INSTANCE), any(), any());
@@ -508,5 +508,4 @@ private StartTrainedModelDeploymentAction.TaskParams taskParams(int numAllocatio
508508
100L
509509
);
510510
}
511-
512511
}

0 commit comments

Comments
 (0)