Skip to content

Commit

Permalink
fix flake
Browse files Browse the repository at this point in the history
  • Loading branch information
kjnilsson committed Aug 15, 2024
1 parent 8db9d83 commit f9aa5ac
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
1 change: 1 addition & 0 deletions deps/rabbit/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -714,6 +714,7 @@ rabbitmq_suite(
"@gen_batch_server//:erlang_app",
"@meck//:erlang_app",
"@ra//:erlang_app",
"//deps/rabbitmq_ct_helpers:erlang_app",
],
)

Expand Down
2 changes: 1 addition & 1 deletion deps/rabbit/app.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -1329,7 +1329,7 @@ def test_suite_beam_files(name = "test_suite_beam_files"):
outs = ["test/rabbit_fifo_int_SUITE.beam"],
app_name = "rabbit",
erlc_opts = "//:test_erlc_opts",
deps = ["//deps/rabbit_common:erlang_app"],
deps = ["//deps/rabbit_common:erlang_app", "//deps/rabbitmq_ct_helpers:erlang_app"],
)
erlang_bytecode(
name = "rabbit_fifo_prop_SUITE_beam_files",
Expand Down
10 changes: 10 additions & 0 deletions deps/rabbit/test/rabbit_fifo_int_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,16 @@ returns_after_down(Config) ->
after 5000 ->
ct:fail("waiting for process exit timed out")
end,
rabbit_ct_helpers:await_condition(
fun () ->
case ra:member_overview(ServerId) of
{ok, #{machine := #{num_consumers := 0}}, _} ->
true;
X ->
ct:pal("X ~p", [X]),
false
end
end),
% message should be available for dequeue
{ok, _, {_, _, _, _, Msg1Out}, _} =
rabbit_fifo_client:dequeue(ClusterName, <<"tag">>, settled, F2),
Expand Down

0 comments on commit f9aa5ac

Please sign in to comment.