From 288073304bfb8e3098d351c61a27cf09325be73d Mon Sep 17 00:00:00 2001 From: Karl Nilsson Date: Wed, 24 Apr 2024 13:58:04 +0100 Subject: [PATCH] tests stuff --- test/ra_SUITE.erl | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) 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]).