diff --git a/deps/rabbitmq_mqtt/test/mqtt_shared_SUITE.erl b/deps/rabbitmq_mqtt/test/mqtt_shared_SUITE.erl index b5c152b6ea3c..70a41ca46545 100644 --- a/deps/rabbitmq_mqtt/test/mqtt_shared_SUITE.erl +++ b/deps/rabbitmq_mqtt/test/mqtt_shared_SUITE.erl @@ -1214,7 +1214,7 @@ management_plugin_connection(Config) -> "/connections/" ++ binary_to_list(uri_string:quote(ConnectionName)), ?NO_CONTENT), await_exit(C1), - ?assertEqual([], http_get(Config, "/connections")), + eventually(?_assertEqual([], http_get(Config, "/connections"))), eventually(?_assertEqual([], all_connection_pids(Config)), 500, 3), C2 = connect(ClientId, Config, [{keepalive, KeepaliveSecs}]), @@ -1223,7 +1223,7 @@ management_plugin_connection(Config) -> "/connections/username/guest", ?NO_CONTENT), await_exit(C2), - ?assertEqual([], http_get(Config, "/connections")), + eventually(?_assertEqual([], http_get(Config, "/connections"))), eventually(?_assertEqual([], all_connection_pids(Config)), 500, 3). management_plugin_enable(Config) ->