Skip to content

Commit 24a1111

Browse files
authored
[ML] Use consistent assertBusy() maxWaitTime in datafeed test (#138202)
Other uses of assertBusy() when checking datafeed stats in DatafeedJobsIT.testDatafeedTimingStats_DatafeedRecreated() use a maxWaitTime of 30 seconds instead of the default of 10, which is necessary to account for possible delays in persisting stat values. Update the maxWaitTime on the first datafeed stats assert to 30 seconds Closes #137207 (cherry picked from commit f236373)
1 parent 61e979b commit 24a1111

File tree

1 file changed

+1
-1
lines changed
  • x-pack/plugin/ml/qa/native-multi-node-tests/src/javaRestTest/java/org/elasticsearch/xpack/ml/integration

1 file changed

+1
-1
lines changed

x-pack/plugin/ml/qa/native-multi-node-tests/src/javaRestTest/java/org/elasticsearch/xpack/ml/integration/DatafeedJobsIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ public void testDatafeedTimingStats_DatafeedRecreated() throws Exception {
250250

251251
putDatafeed(datafeedConfig);
252252
// Datafeed did not do anything yet, hence search_count is equal to 0.
253-
assertBusy(() -> assertDatafeedStats(datafeedId, DatafeedState.STOPPED, job.getId(), equalTo(0L)));
253+
assertBusy(() -> assertDatafeedStats(datafeedId, DatafeedState.STOPPED, job.getId(), equalTo(0L)), 30, TimeUnit.SECONDS);
254254
startDatafeed(datafeedId, 0L, now.toEpochMilli());
255255

256256
// First, wait for data processing to complete

0 commit comments

Comments
 (0)