Skip to content

Commit 42746af

Browse files
Merge pull request #9003 from rabbitmq/mqtt-test-await
mqtt shared_SUITE: another case of a time dependent test
2 parents af20933 + 57aa7c0 commit 42746af

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

deps/rabbitmq_mqtt/test/shared_SUITE.erl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -836,7 +836,9 @@ session_expiry(Config) ->
836836

837837
?assertEqual(2, rpc(Config, rabbit_amqqueue, count, [])),
838838
timer:sleep(timer:seconds(Seconds) + 100),
839-
?assertEqual(0, rpc(Config, rabbit_amqqueue, count, [])),
839+
%% On a slow machine, this test might fail. Let's consider
840+
%% the expiry on a longer time window
841+
?awaitMatch(0, rpc(Config, rabbit_amqqueue, count, []), 15_000, 1000),
840842

841843
ok = rpc(Config, application, set_env, [App, Par, DefaultVal]).
842844

0 commit comments

Comments
 (0)