Skip to content

Commit

Permalink
cluster_minority_SUITE: use a timeout for vhost deletion
Browse files Browse the repository at this point in the history
  • Loading branch information
dcorbacho committed Sep 12, 2024
1 parent f849a60 commit 2981782
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion deps/rabbit/test/cluster_minority_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,11 @@ update_vhost(Config) ->
[<<"/">>, [carrots], <<"user">>])).

delete_vhost(Config) ->
?assertMatch({'EXIT', _}, rabbit_ct_broker_helpers:delete_vhost(Config, <<"vhost1">>)).
?assertError(
{erpc, timeout},
rabbit_ct_broker_helpers:rpc(
Config, 0,
rabbit_vhost, delete, [<<"vhost1">>, <<"acting-user">>], 1_000)).

add_user(Config) ->
?assertMatch({error, timeout},
Expand Down

0 comments on commit 2981782

Please sign in to comment.