Skip to content

Commit

Permalink
tests stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
kjnilsson committed Apr 24, 2024
1 parent 712ea4e commit 2880733
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions test/ra_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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]).

Expand Down

0 comments on commit 2880733

Please sign in to comment.