Skip to content

Commit 1eeb9b3

Browse files
committed
Fix MQTT test flake
1 parent 7ba0594 commit 1eeb9b3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

deps/rabbitmq_mqtt/test/v5_SUITE.erl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -399,6 +399,8 @@ session_expiry_disconnect_decrease(QueueType, Config) ->
399399

400400
%% DISCONNECT decreases Session Expiry Interval from 100 seconds to 1 second.
401401
ok = emqtt:disconnect(C1, ?RC_NORMAL_DISCONNECTION, #{'Session-Expiry-Interval' => 1}),
402+
%% Wait a bit since DISCONNECT is async.
403+
timer:sleep(50),
402404
assert_queue_ttl(1, 1, Config),
403405

404406
timer:sleep(1500),

0 commit comments

Comments
 (0)