From 073411f23fa39fefc65b54773d7b74ec11c837ed Mon Sep 17 00:00:00 2001 From: Yicheng Qin Date: Thu, 11 Sep 2014 23:17:13 -0700 Subject: [PATCH] raft: remove vote with default value --- raft/node_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/raft/node_test.go b/raft/node_test.go index 12e5d6f67..210f5c6b1 100644 --- a/raft/node_test.go +++ b/raft/node_test.go @@ -14,12 +14,12 @@ func TestNode(t *testing.T) { wants := []Ready{ { - State: raftpb.State{Term: 1, Vote: none, Commit: 1, LastIndex: 1}, + State: raftpb.State{Term: 1, Commit: 1, LastIndex: 1}, Entries: []raftpb.Entry{{Term: 1, Index: 1}}, CommittedEntries: []raftpb.Entry{{Term: 1, Index: 1}}, }, { - State: raftpb.State{Term: 1, Vote: none, Commit: 2, LastIndex: 2}, + State: raftpb.State{Term: 1, Commit: 2, LastIndex: 2}, Entries: []raftpb.Entry{{Term: 1, Index: 2, Data: []byte("foo")}}, CommittedEntries: []raftpb.Entry{{Term: 1, Index: 2, Data: []byte("foo")}}, }, @@ -48,7 +48,7 @@ func TestNodeRestart(t *testing.T) { {Term: 1, Index: 1}, {Term: 1, Index: 2, Data: []byte("foo")}, } - st := raftpb.State{Term: 1, Vote: none, Commit: 1, LastIndex: 2} + st := raftpb.State{Term: 1, Commit: 1, LastIndex: 2} want := Ready{ State: emptyState,