Skip to content

Commit

Permalink
metrics_SUITE: wait for tables in proper test
Browse files Browse the repository at this point in the history
(cherry picked from commit 054fcd6)
  • Loading branch information
dcorbacho authored and mergify[bot] committed Nov 4, 2024
1 parent 1a64a28 commit 7d906c7
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions deps/rabbit/test/metrics_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -290,11 +290,13 @@ add_rem_counter(Config, {Initial, Ops}, {AddFun, RemFun}, Tables) ->
{Initial, Things},
Ops),
force_metric_gc(Config),
TabLens = lists:map(fun(T) ->
length(read_table_rpc(Config, T))
end, Tables),
?awaitMatch([FinalLen],
lists:usort(lists:map(fun(T) ->
length(read_table_rpc(Config, T))
end, Tables)),
45000),
[RemFun(Thing) || Thing <- Things1],
[FinalLen] == lists:usort(TabLens).
true.


connection(Config) ->
Expand Down

0 comments on commit 7d906c7

Please sign in to comment.