Skip to content

Commit 42a855e

Browse files
committed
Slight tweak to DatafeedJobsIT
1 parent 95b7158 commit 42a855e

File tree

1 file changed

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

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,7 @@ private void doTestStopLookback_GivenCloseJobParameter(String jobId, boolean clo
545545
String datafeedId = jobId + "-datafeed";
546546

547547
client().admin().indices().prepareCreate("data").setMapping("time", "type=date").get();
548-
long numDocs = randomIntBetween(1024, 2048);
548+
long numDocs = 20480;
549549
long now = System.currentTimeMillis();
550550
long oneWeekAgo = now - 604800000;
551551
long twoWeeksAgo = oneWeekAgo - 604800000;
@@ -569,7 +569,7 @@ private void doTestStopLookback_GivenCloseJobParameter(String jobId, boolean clo
569569
assertTrue(stopDatafeedResponse.isStopped());
570570

571571
// Check the job state is as expected
572-
assertBusy(() -> assertEquals(jobState, getJobStats(jobId).get(0).getState()));
572+
assertBusy(() -> assertEquals(jobState, getJobStats(jobId).get(0).getState()), 2, TimeUnit.SECONDS);
573573
}
574574

575575
public void testStopLookback_GivenCloseJobParameterIsTrue() throws Exception {

0 commit comments

Comments
 (0)