Skip to content

Commit 6d4e1c2

Browse files
authored
Merge pull request #12692 from rabbitmq/mergify/bp/v4.0.x/pr-12689
Fix MQTT test flake management_plugin_connection (backport #12689)
2 parents 24cbca1 + aa37129 commit 6d4e1c2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

deps/rabbitmq_mqtt/test/shared_SUITE.erl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1198,7 +1198,7 @@ management_plugin_connection(Config) ->
11981198
"/connections/" ++ binary_to_list(uri_string:quote(ConnectionName)),
11991199
?NO_CONTENT),
12001200
await_exit(C1),
1201-
?assertEqual([], http_get(Config, "/connections")),
1201+
eventually(?_assertEqual([], http_get(Config, "/connections"))),
12021202
eventually(?_assertEqual([], all_connection_pids(Config)), 500, 3),
12031203

12041204
C2 = connect(ClientId, Config, [{keepalive, KeepaliveSecs}]),
@@ -1207,7 +1207,7 @@ management_plugin_connection(Config) ->
12071207
"/connections/username/guest",
12081208
?NO_CONTENT),
12091209
await_exit(C2),
1210-
?assertEqual([], http_get(Config, "/connections")),
1210+
eventually(?_assertEqual([], http_get(Config, "/connections"))),
12111211
eventually(?_assertEqual([], all_connection_pids(Config)), 500, 3).
12121212

12131213
management_plugin_enable(Config) ->

0 commit comments

Comments
 (0)