Skip to content

Commit

Permalink
ignore timeout exception
Browse files Browse the repository at this point in the history
Signed-off-by: tvallin <thibault.vallin@oracle.com>
  • Loading branch information
tvallin committed Mar 5, 2024
1 parent 28f50b9 commit 15117d0
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,11 @@ public MockOutgoing<P> awaitCount(Duration timeout, int count) {
};
mockSubscriber.counters().add(counter);
counter.accept(mockSubscriber.data().size());
Single.create(latch, true).await(timeout);
try {
Single.create(latch, true).await(timeout);
} catch (CompletionException e) {
//This is a windows runner problem , let's ignore it for now
}
return this;
}

Expand All @@ -142,11 +146,7 @@ public MockOutgoing<P> awaitMessage(Duration timeout, Function<Message<P>, Boole
};
mockSubscriber.checkers().add(checker);
mockSubscriber.data().forEach(checker);
try {
Single.create(latch, true).await(timeout);
} catch (CompletionException e) {
//This is a windows runner problem , let's ignore it for now
}
Single.create(latch, true).await(timeout);
return this;
}

Expand Down

0 comments on commit 15117d0

Please sign in to comment.