Skip to content

Commit ee578e8

Browse files
committed
Tests: wait until stats are published, not just collected on the agent
1 parent 4c57a42 commit ee578e8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

deps/rabbitmq_management/test/clustering_SUITE.erl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,8 @@ queue_with_multiple_consumers(Config) ->
253253
end,
254254

255255
force_stats(Config),
256+
?awaitMatch(#{consumer_details := [_, _|_]},
257+
http_get(Config, "/queues/%2F/multi-consumer-queue1"), 60000),
256258

257259
Res = http_get(Config, "/queues/%2F/multi-consumer-queue1"),
258260
http_delete(Config, "/queues/%2F/multi-consumer-queue1", ?NO_CONTENT),
@@ -519,6 +521,8 @@ consumers(Config) ->
519521
consume(Chan2, <<"some-queue">>),
520522

521523
force_stats(Config),
524+
?awaitMatch([_, _|_], http_get(Config, "/consumers"), 60000),
525+
522526
Res = http_get(Config, "/consumers"),
523527

524528
% assert there are two non-empty consumer records

0 commit comments

Comments
 (0)