Skip to content

Commit 5956fc9

Browse files
committed
Fine tuning the unit test as discussed.
1 parent feb8cbe commit 5956fc9

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

marklogic-client-api-functionaltests/src/test/java/com/marklogic/client/datamovement/functionaltests/QueryBatcherJobReportTest.java

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -760,18 +760,24 @@ public void run() {
760760
qb2.setMaxBatches();
761761
}
762762
}
763+
764+
Thread tMBStop2 = new Thread(new BatchesSoFarThread());
765+
try {
766+
Thread.sleep(3000);
767+
} catch (InterruptedException e) {
768+
e.printStackTrace();
769+
}
763770

764771
dmManager.startJob(qb2);
765-
766-
Thread tMBStop2 = new Thread(new BatchesSoFarThread());
772+
767773
int initialUrisSize = batchResults2.size();
768774

769775
tMBStop2.start();
770776
qb2.awaitCompletion();
771777
dmManager.stopJob(qb2);
772778

773779
assertTrue("Batches of URIs collected so far", batchResults2.size() > 0);
774-
assertTrue("Number of Uris collected does not fall in the range", (batchResults2.size()>initialUrisSize && batchResults2.size()< 50000));
780+
assertTrue("Number of Uris collected does not fall in the range", (batchResults2.size()>initialUrisSize && batchResults2.size()< 2436));
775781
}
776782
catch (Exception ex) {
777783
ex.printStackTrace();

0 commit comments

Comments
 (0)