Merge pull request #4298 from heyitsanthony/fix-testapplysnapshot-race

etcdserver/test: synchronously wait on TestApplySnapshotAndCommittedE…
This commit is contained in:
Anthony Romano
2016-01-26 21:18:09 -08:00
2 changed files with 11 additions and 6 deletions

View File

@@ -1019,7 +1019,7 @@ func TestRecvSnapshot(t *testing.T) {
// first and then committed entries.
func TestApplySnapshotAndCommittedEntries(t *testing.T) {
n := newNopReadyNode()
st := store.NewRecorder()
st := store.NewRecorderStream()
cl := newCluster("abc")
cl.SetStore(store.New())
storage := raft.NewMemoryStorage()