Skip to content

Commit

Permalink
Fix unit test.
Browse files Browse the repository at this point in the history
  • Loading branch information
notbdu committed Jul 17, 2020
1 parent d10a130 commit 3c2191c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/dbnode/storage/fs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,11 @@ func TestFileSystemManagerRun(t *testing.T) {
fsm := newFileSystemManager(database, nil, DefaultTestOptions())
mgr := fsm.(*fileSystemManager)
mgr.databaseFlushManager = fm
mgr.databaseCleanupManager = cm

ts := time.Now()
gomock.InOrder(
cm.EXPECT().Cleanup(ts, true).Return(errors.New("foo")),
cm.EXPECT().WarmFlushCleanup(ts, true).Return(errors.New("foo")),
fm.EXPECT().Flush(ts).Return(errors.New("bar")),
)

Expand Down

0 comments on commit 3c2191c

Please sign in to comment.