mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
TestNodeReadIndex
Needs to ignore the injected MsgAppResp. Signed-off-by: Tobias Grieger <tobias.b.grieger@gmail.com>
This commit is contained in:
parent
14a76d755f
commit
0d9a6061c3
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user