Skip to content

Commit

Permalink
pause between two data loads so the history can be retrieved in order…
Browse files Browse the repository at this point in the history
… by time
  • Loading branch information
erilong committed Apr 18, 2008
1 parent 5efb43d commit 8ce65a2
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -285,6 +285,8 @@ public void testErrorWhileSkip() throws Exception {
writer.write("UnknownTokenWithinBatch");
writer.writeRecord(new String[] { CsvConstants.COMMIT, getBatchId() });
writer.close();
// Pause a moment to guarentee our history comes back in time order
Thread.sleep(10);
load(out);
Assert.assertEquals(findIncomingBatchStatus(batchId, TestConstants.TEST_CLIENT_EXTERNAL_ID),
IncomingBatch.Status.OK, "Wrong status");
Expand Down

0 comments on commit 8ce65a2

Please sign in to comment.