Skip to content

Commit

Permalink
Tests: wait until stats are published, not just collected on the agent
Browse files Browse the repository at this point in the history
  • Loading branch information
lhoguin committed Oct 18, 2024
1 parent 4c57a42 commit ee578e8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions deps/rabbitmq_management/test/clustering_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,8 @@ queue_with_multiple_consumers(Config) ->
end,

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

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

force_stats(Config),
?awaitMatch([_, _|_], http_get(Config, "/consumers"), 60000),

Res = http_get(Config, "/consumers"),

% assert there are two non-empty consumer records
Expand Down

0 comments on commit ee578e8

Please sign in to comment.