Skip to content

Commit 25bbc61

Browse files
committed
tests: clustering_SUITE wait for metrics
1 parent d905f36 commit 25bbc61

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

deps/rabbitmq_management/test/clustering_SUITE.erl

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -416,9 +416,12 @@ channel_closed(Config) ->
416416

417417
force_stats(Config),
418418

419-
Res = http_get(Config, "/channels"),
420-
% assert one channel is present
421-
[_] = Res,
419+
rabbit_ct_helpers:await_condition(
420+
fun() ->
421+
%% assert one channel is present
422+
length(http_get(Config, "/channels")) == 1
423+
end,
424+
60000),
422425

423426
http_delete(Config, "/queues/%2F/some-queue", ?NO_CONTENT),
424427

0 commit comments

Comments
 (0)