wal/wal.go : improved coverage by testing WAL.Save which causes a WAL.cut to happen

This commit is contained in:
Vimal Kumar
2016-09-21 16:29:04 +05:30
parent d6a3ce17d5
commit 064411b51c
2 changed files with 63 additions and 1 deletions

View File

@ -563,7 +563,6 @@ func (w *WAL) Save(st raftpb.HardState, ents []raftpb.Entry) error {
return nil
}
// TODO: add a test for this code path when refactoring the tests
return w.cut()
}