Skip to content

Commit ea79e42

Browse files
committed
Use exit code 75 for minority tests
1 parent 1412496 commit ea79e42

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

deps/rabbit/test/clustering_management_SUITE.erl

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -622,10 +622,16 @@ reset_in_minority(Config) ->
622622
ok = rpc:call(Rabbit, application, set_env,
623623
[rabbit, khepri_leader_wait_retry_limit, 3]),
624624
stop_app(Rabbit),
625-
?assertMatch({error, 69, _}, reset(Rabbit)),
625+
626+
is_in_minority(reset(Rabbit)),
626627

627628
ok.
628629

630+
is_in_minority(Ret) ->
631+
?assertMatch({error, 75, _}, Ret),
632+
{error, _, Msg} = Ret,
633+
?assertMatch(match, re:run(Msg, ".*timed out.*minority.*", [{capture, none}])).
634+
629635
reset_last_disc_node(Config) ->
630636
Servers = [Rabbit, Hare | _] = cluster_members(Config),
631637

0 commit comments

Comments
 (0)