Skip to content

Commit 45718fb

Browse files
committed
Tests: wait until stats are published, not just collected on the agent
1 parent 2eeac4b commit 45718fb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

deps/rabbitmq_management/test/clustering_SUITE.erl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,8 +217,9 @@ queue_on_other_node(Config) ->
217217
consume(Chan2, <<"some-queue">>),
218218

219219
force_stats(Config),
220-
Res = http_get(Config, "/queues/%2F/some-queue"),
220+
?awaitMatch([_], maps:get(consumer_details, http_get(Config, "/queues/%2F/some-queue")), 60000),
221221

222+
Res = http_get(Config, "/queues/%2F/some-queue"),
222223
% assert some basic data is present
223224
[Cons] = maps:get(consumer_details, Res),
224225
#{} = maps:get(channel_details, Cons), % channel details proplist must not be empty

0 commit comments

Comments
 (0)