Skip to content

Commit ef118b6

Browse files
authored
[ML] Wait for _infer to work after restart in full cluster restart tests (#93327) (#93566)
Backport of #93327 Closes #93529
1 parent 4d518db commit ef118b6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

x-pack/qa/full-cluster-restart/src/javaRestTest/java/org/elasticsearch/xpack/restart/MLModelDeploymentFullClusterRestartIT.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,10 @@ public void testDeploymentSurvivesRestart() throws Exception {
104104
request.addParameter("timeout", "70s");
105105
}));
106106
waitForDeploymentStarted(modelId);
107-
assertInfer(modelId);
108-
assertNewInfer(modelId);
107+
assertBusy(() -> {
108+
assertInfer(modelId);
109+
assertNewInfer(modelId);
110+
}, 90, TimeUnit.SECONDS);
109111
stopDeployment(modelId);
110112
}
111113
}

0 commit comments

Comments
 (0)