Skip to content

Commit ed9124b

Browse files
Wait for metrics to refresh before this assertion
1 parent 463c479 commit ed9124b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

deps/rabbitmq_management/test/rabbit_mgmt_http_SUITE.erl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2466,6 +2466,7 @@ format_output_test(Config) ->
24662466
http_put(Config, "/vhosts/vh1", none, {group, '2xx'}),
24672467
http_put(Config, "/permissions/vh1/guest", PermArgs, {group, '2xx'}),
24682468
http_put(Config, "/queues/%2F/test0", QArgs, {group, '2xx'}),
2469+
timer:sleep(2000),
24692470
assert_list([#{name => <<"test0">>,
24702471
consumer_capacity => 0,
24712472
consumer_utilisation => 0,
@@ -2479,7 +2480,7 @@ columns_test(Config) ->
24792480
http_put(Config, "/queues/%2F/test", [{arguments, [{<<"foo">>, <<"bar">>}]}],
24802481
{group, '2xx'}),
24812482
Item = #{arguments => #{foo => <<"bar">>}, name => <<"test">>},
2482-
timer:sleep(1500),
2483+
timer:sleep(2000),
24832484
[Item] = http_get(Config, "/queues?columns=arguments.foo,name", ?OK),
24842485
Item = http_get(Config, "/queues/%2F/test?columns=arguments.foo,name", ?OK),
24852486
http_delete(Config, "/queues/%2F/test", {group, '2xx'}),

0 commit comments

Comments
 (0)