Skip to content

Commit

Permalink
Fix unstable test case t_blackhole; allow alternative scenarios
Browse files Browse the repository at this point in the history
  • Loading branch information
zuiderkwast committed Sep 19, 2023
1 parent 4b7b090 commit 88f8732
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/ered_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -342,10 +342,14 @@ t_blackhole(_) ->
ResponseTimeout + 1000),
?MSG({ping_reply, {error, _Reason}}, % node_down or node_deactivated
NodeDownTimeout + 1000),
?MSG(#{msg_type := slot_map_updated}),
?MSG(#{msg_type := slot_map_updated},
5000),
?OPTIONAL_MSG(#{msg_type := node_down_timeout, addr := {"127.0.0.1", Port}}),
?OPTIONAL_MSG(#{msg_type := cluster_not_ok, reason := master_down}),
?MSG(#{msg_type := node_deactivated, addr := {"127.0.0.1", Port}}),
?MSG(#{msg_type := client_stopped, reason := normal, master := false},
CloseWait + 1000),
?OPTIONAL_MSG(#{msg_type := cluster_ok}),

ct:pal("Unpausing container: " ++ os:cmd("docker unpause " ++ Pod)),
timer:sleep(500),
Expand Down

0 comments on commit 88f8732

Please sign in to comment.