etcdserver/test: synchronously wait on TestApplySnapshotAndCommittedEntries

Replaces the RecorderBuffered with a RecorderStream so Wait will block
waiting for updates to the etcdserver store.

Fixes #4296
This commit is contained in:
Anthony Romano
2016-01-26 20:57:21 -08:00
parent 4c024b305f
commit 64596f0c49
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()