Skip to content

Commit

Permalink
Increase expiry epsilon in dead letter test
Browse files Browse the repository at this point in the history
(cherry picked from commit 6c3e72d)
  • Loading branch information
acogoluegnes committed Dec 5, 2018
1 parent d67b90d commit 1eb5590
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,7 @@ private void sleep(long millis) {
publication time + TTL + latency */
private void checkPromptArrival(AccumulatingMessageConsumer c,
int count, long latency) throws Exception {
long epsilon = TTL / 10;
long epsilon = TTL / 5;
for (int i = 0; i < count; i++) {
byte[] body = c.nextDelivery(TTL + TTL + latency + epsilon);
assertNotNull("message #" + i + " did not expire", body);
Expand Down

0 comments on commit 1eb5590

Please sign in to comment.