Skip to content

Commit a7fdd4f

Browse files
author
jblayneyXpanxion
committed
Increasing timing by 1 second per timing failures & intermittent results.
1 parent 578f6a4 commit a7fdd4f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

util/src/test/java/com/github/chrisgleissner/springbatchrest/util/core/AdHocStarterTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public void startWorks() throws InterruptedException {
5353
propMap.put("foo", propertyValue++);
5454
starter.start(jobToRun, true, propMap);
5555
}
56-
assertThat(latch.await(2, SECONDS)).isTrue();
56+
assertThat(latch.await(3, SECONDS)).isTrue();
5757
assertThat(propertyValues).hasSize(propertyValue); // TODO: Intermittent failures here - presumed timing issue
5858
}
5959
Thread.sleep(100); // Job completion takes place after latch is counted down
@@ -86,8 +86,8 @@ public void startJobConfigWorks() throws InterruptedException {
8686
.property("foo", "" + propertyValue++)
8787
.asynchronous(true).build());
8888
}
89-
assertThat(latch.await(2, SECONDS)).isTrue();
90-
assertThat(propertyValues).hasSize(propertyValue);
89+
assertThat(latch.await(3, SECONDS)).isTrue();
90+
assertThat(propertyValues).hasSize(propertyValue); // TODO: Intermittent failures here - presumed timing issue
9191
}
9292
Thread.sleep(100); // Job completion takes place after latch is counted down
9393
assertThat(JobProperties.of("AdHocStarterTest0").getProperty("foo")).isEqualTo("bar");

0 commit comments

Comments
 (0)