Skip to content

Commit

Permalink
Test reliability
Browse files Browse the repository at this point in the history
  • Loading branch information
kjnilsson committed Feb 14, 2024
1 parent 6efc9d6 commit 13c1376
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions test/ra_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -551,17 +551,24 @@ members_info(Config) ->
{ok, _, _} = ra:add_member(Leader, CSpec),
{ok, 9, Leader} = ra:consistent_query(C, fun(S) -> S end),
?assertMatch({ok,
#{Follower := #{status := normal, query_index := QI,
next_index := NI, match_index := MI,
#{Follower := #{status := normal,
query_index := QI,
next_index := NI,
match_index := MI,
commit_index_sent := MI,
voter_status := #{membership := voter}},
Leader := #{status := normal, query_index := QI,
next_index := NI, match_index := MI,
Leader := #{status := normal,
query_index := QI,
next_index := NI,
match_index := MI,
voter_status := #{membership := voter}},
C := #{status := normal, query_index := QI,
next_index := NI, match_index := 0,
C := #{status := normal,
query_index := _,
next_index := NI,
match_index := 0,
commit_index_sent := MI,
voter_status := #{membership := promotable, target := MI}}},
voter_status := #{membership := promotable,
target := MI}}},
Leader}, ra:members_info(Follower)),
?assertMatch({ok,
#{A := #{},
Expand Down

0 comments on commit 13c1376

Please sign in to comment.