etcdserver/*: fix tests

This commit is contained in:
Viacheslav Biriukov
2019-01-07 10:48:16 +00:00
committed by Joe Betz
parent 3d2b565f98
commit 5435e7686a
2 changed files with 37 additions and 12 deletions

View File

@@ -45,4 +45,11 @@ func (p *storageRecorder) SaveSnap(st raftpb.Snapshot) error {
return nil
}
func (p *storageRecorder) Release(st raftpb.Snapshot) error {
if !raft.IsEmptySnap(st) {
p.Record(testutil.Action{Name: "Release"})
}
return nil
}
func (p *storageRecorder) Close() error { return nil }