We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 36fdff2 commit ce746f1Copy full SHA for ce746f1
clients/src/test/java/no/nav/kafka/sandbox/DockerComposeEnv.java
@@ -281,15 +281,15 @@ private DockerComposeEnv up() throws Exception {
281
List<CompletableFuture<Void>> allReadyTestsComplete = readyTests.stream().map(
282
test -> CompletableFuture.runAsync(()-> {
283
int count = 0;
284
- while (!test.get() && count++ < 100) {
+ while (!test.get() && count++ < 300) {
285
try {
286
Thread.sleep(1000);
287
} catch (InterruptedException ie) {
288
throw new RuntimeException("Interrupted while waiting for ready-test");
289
}
290
291
- if (count > 100) {
292
- throw new RuntimeException("Ready-test failed");
+ if (count >= 300) {
+ throw new RuntimeException("Ready-test give up after 300 attempts");
293
294
295
)).collect(Collectors.toList());
0 commit comments