Skip to content

Commit

Permalink
fix: ut
Browse files Browse the repository at this point in the history
  • Loading branch information
constwz committed Jun 19, 2024
1 parent e757d28 commit 51e0f31
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modular/receiver/receive_task_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package receiver
import (
"context"
"fmt"
"gorm.io/gorm"

Check failure on line 6 in modular/receiver/receive_task_test.go

View workflow job for this annotation

GitHub Actions / golangci-lint (1.20.x, ubuntu-latest)

File is not `goimports`-ed (goimports)
"testing"

sdkmath "cosmossdk.io/math"
Expand Down Expand Up @@ -236,6 +237,7 @@ func TestHandleDoneReceivePieceTask_PieceCountMismatch(t *testing.T) {
mockSPDB := spdb.NewMockSPDB(ctrl)
r.baseApp.SetGfSpDB(mockSPDB)
mockSPDB.EXPECT().GetAllReplicatePieceChecksumOptimized(gomock.Any(), gomock.Any(), gomock.Any()).Return(nil, nil).Times(1)
mockSPDB.EXPECT().GetObjectIntegrity(gomock.Any(), gomock.Any()).Return(nil, gorm.ErrRecordNotFound).AnyTimes()
_, err := r.HandleDoneReceivePieceTask(context.TODO(), mockTask)
assert.NotNil(t, err)
}
Expand Down

0 comments on commit 51e0f31

Please sign in to comment.