Skip to content

Commit

Permalink
[Backport to 2.x] Fix flaky integ test caused by latency of undeploy …
Browse files Browse the repository at this point in the history
  • Loading branch information
zane-neo authored Sep 28, 2023
1 parent 415082e commit 848ec21
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,10 @@ protected void deleteModel(String modelId) {
toHttpEntity(""),
ImmutableList.of(new BasicHeader(HttpHeaders.USER_AGENT, DEFAULT_USER_AGENT))
);
Thread.sleep(DEFAULT_TASK_RESULT_QUERY_INTERVAL_IN_MILLISECOND);

// after model undeploy returns, the max interval to update model status is 3s in ml-commons CronJob.
Thread.sleep(3000);

makeRequest(
client(),
"DELETE",
Expand Down

0 comments on commit 848ec21

Please sign in to comment.