summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Sébastien Pédron <jean-sebastien@rabbitmq.com>2020-10-15 15:04:11 +0200
committerJean-Sébastien Pédron <jean-sebastien@rabbitmq.com>2020-10-15 15:04:11 +0200
commit4b320dd21ad099fc7513a55052f7553a719073bc (patch)
treef19f7ca7c60ecfc9bbc4aea0e284e40c5b5166b8
parent7772eac5590ce942657cc2434ceecb9a572538b7 (diff)
downloadrabbitmq-server-git-4b320dd21ad099fc7513a55052f7553a719073bc.tar.gz
rabbit_stream_queue_SUITE: Give more time for expired messages to go away
The testcase is time-sensitive: it may be possible that the expired messages are not all dropped at the time we consume the queue to acknowledge they are gone. We give them 5 more seconds: it should be enough for the last expired messages to be removed, without affecting newer messages (which we expect to be there).
-rw-r--r--test/rabbit_stream_queue_SUITE.erl2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/rabbit_stream_queue_SUITE.erl b/test/rabbit_stream_queue_SUITE.erl
index 67ca8eba8b..d3dfd60f7c 100644
--- a/test/rabbit_stream_queue_SUITE.erl
+++ b/test/rabbit_stream_queue_SUITE.erl
@@ -1097,6 +1097,8 @@ max_age(Config) ->
[publish(Ch, Q, Payload) || _ <- lists:seq(1, 100)],
amqp_channel:wait_for_confirms(Ch, 5000),
+ timer:sleep(5000),
+
Ch1 = rabbit_ct_client_helpers:open_channel(Config, Server),
qos(Ch1, 200, false),
subscribe(Ch1, Q, false, 0),