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:
@ -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()
|
||||
|
Reference in New Issue
Block a user