raft: fix readindex

This commit is contained in:
Xiang Li
2016-07-19 14:19:13 -07:00
parent d3d954d659
commit 1c5754f02d
4 changed files with 25 additions and 8 deletions

View File

@@ -180,7 +180,7 @@ func TestNodeReadIndex(t *testing.T) {
r.step = appendStep
wrequestCtx = []byte("somedata2")
n.ReadIndex(context.TODO(), r.id, wrequestCtx)
n.ReadIndex(context.TODO(), wrequestCtx)
n.Stop()
if len(msgs) != 1 {