diff --git a/test/ra_SUITE.erl b/test/ra_SUITE.erl index 69e0a344..306d6976 100644 --- a/test/ra_SUITE.erl +++ b/test/ra_SUITE.erl @@ -556,7 +556,7 @@ members_info(Config) -> query_index := QI, next_index := NI, match_index := MI, - commit_index_sent := MI, + commit_index_sent := _, voter_status := #{membership := voter}}, Leader := #{status := normal, query_index := QI, @@ -566,16 +566,18 @@ members_info(Config) -> C := #{status := normal, query_index := _, next_index := NI, - match_index := 0, commit_index_sent := MI, - voter_status := #{membership := promotable, - target := MI}}}, - Leader}, ra:members_info(Follower)), + voter_status := #{membership := CMemb, + target := _}}}, + Leader} + when CMemb == promotable orelse CMemb == voter, + ra:members_info(Follower)), ?assertMatch({ok, #{A := #{}, B := #{}, - C := #{query_index := 1, match_index := 3, - voter_status := #{membership := promotable}}}, + C := #{query_index := _, + match_index := _, + voter_status := #{membership := _}}}, C}, ra:members_info({local, C})), terminate_cluster([A, B, C]).