From 3584ccfce4ba7cd2f3611a2a0aade747860cddd8 Mon Sep 17 00:00:00 2001 From: Karl Nilsson Date: Wed, 14 Feb 2024 11:05:58 +0000 Subject: [PATCH] Test reliability --- test/ra_2_SUITE.erl | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/test/ra_2_SUITE.erl b/test/ra_2_SUITE.erl index 3ad77d01..817dd292 100644 --- a/test/ra_2_SUITE.erl +++ b/test/ra_2_SUITE.erl @@ -299,9 +299,9 @@ cluster_is_deleted_with_server_down(Config) -> % start node again ra:restart_server(?SYS, ServerId3), % validate all nodes have been shut down and terminated - ok = validate_process_down(element(1, ServerId1), 10), - ok = validate_process_down(element(1, ServerId2), 10), - ok = validate_process_down(element(1, ServerId3), 10), + ok = validate_process_down(element(1, ServerId1), 50), + ok = validate_process_down(element(1, ServerId2), 50), + ok = validate_process_down(element(1, ServerId3), 50), % validate there are no data dirs anymore [ begin @@ -814,10 +814,11 @@ init(_) -> {State0, ok} end. -state_enter(eol, State) -> +state_enter(eol = S, State) -> + ct:pal("state_enter ~w ~w", [self(), S]), [{send_msg, P, eol, ra_event} || {P, _} <- queue:to_list(State), is_pid(P)]; state_enter(S, _) -> - ct:pal("state_enter ~w", [S]), + ct:pal("state_enter ~w ~w", [self(), S]), []. flush() ->