Skip to content

Commit

Permalink
feat: unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
jingjunLi committed Nov 21, 2023
1 parent 202ab38 commit 969101c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
16 changes: 8 additions & 8 deletions core/spdb/spdb_mock.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion modular/executor/executor_task_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -910,7 +910,7 @@ func TestExecuteModular_HandleGCMetaTask(t *testing.T) {
e.baseApp.SetPieceOp(m2)

m4 := corespdb.NewMockSPDB(ctrl)
m4.EXPECT().DeleteExpiredReadRecord(gomock.Any()).Return(nil).AnyTimes()
m4.EXPECT().DeleteExpiredReadRecord(gomock.Any(), gomock.Any()).Return(nil).AnyTimes()
m4.EXPECT().DeleteExpiredBucketTraffic(gomock.Any()).Return(nil).AnyTimes()
e.baseApp.SetGfSpDB(m4)

Expand Down

0 comments on commit 969101c

Please sign in to comment.