Skip to content

Commit

Permalink
[fix][test] Fix flaky DelayedDeliveryTest.testEnableTopicDelayedDelivery
Browse files Browse the repository at this point in the history
  • Loading branch information
pdolif committed Jan 24, 2025
1 parent 798a014 commit c2d3f97
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -483,10 +483,10 @@ public void testEnableTopicDelayedDelivery() throws Exception {
break;
}
}
producer.newMessage().value("long-tick-msg").deliverAfter(2, TimeUnit.SECONDS).send();
producer.newMessage().value("long-tick-msg").deliverAfter(3, TimeUnit.SECONDS).send();
msg = consumer.receive(1, TimeUnit.SECONDS);
assertNull(msg);
msg = consumer.receive(3, TimeUnit.SECONDS);
msg = consumer.receive(4, TimeUnit.SECONDS);
assertNotNull(msg);
}

Expand Down

0 comments on commit c2d3f97

Please sign in to comment.