Skip to content

Commit 2d605c4

Browse files
dcorbachomergify[bot]
authored andcommitted
metrics_SUITE: wait for tables in proper test
(cherry picked from commit 054fcd6) (cherry picked from commit 7d906c7)
1 parent 17e36ca commit 2d605c4

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

deps/rabbit/test/metrics_SUITE.erl

+6-4
Original file line numberDiff line numberDiff line change
@@ -288,11 +288,13 @@ add_rem_counter(Config, {Initial, Ops}, {AddFun, RemFun}, Tables) ->
288288
{Initial, Things},
289289
Ops),
290290
force_metric_gc(Config),
291-
TabLens = lists:map(fun(T) ->
292-
length(read_table_rpc(Config, T))
293-
end, Tables),
291+
?awaitMatch([FinalLen],
292+
lists:usort(lists:map(fun(T) ->
293+
length(read_table_rpc(Config, T))
294+
end, Tables)),
295+
45000),
294296
[RemFun(Thing) || Thing <- Things1],
295-
[FinalLen] == lists:usort(TabLens).
297+
true.
296298

297299

298300
connection(Config) ->

0 commit comments

Comments
 (0)