TestNodeReadIndex

Needs to ignore the injected MsgAppResp.

Signed-off-by: Tobias Grieger <tobias.b.grieger@gmail.com>
This commit is contained in:
Tobias Grieger 2022-09-06 09:28:40 +02:00
parent 14a76d755f
commit 0d9a6061c3

View File

@ -178,6 +178,10 @@ func TestNodePropose(t *testing.T) {
func TestNodeReadIndex(t *testing.T) {
var msgs []raftpb.Message
appendStep := func(r *raft, m raftpb.Message) error {
if m.Type == raftpb.MsgAppResp {
// See (*raft).advance.
return nil
}
msgs = append(msgs, m)
return nil
}