Skip to content

Commit

Permalink
fix test and lint
Browse files Browse the repository at this point in the history
  • Loading branch information
beer-1 committed Dec 2, 2024
1 parent 88ed676 commit 9877511
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ linters:
- dogsled
- dupl
- errcheck
- exportloopref
- copyloopvar
- goconst
- gofmt
- goimports
Expand All @@ -23,12 +23,12 @@ linters:
- typecheck
- unconvert
- unused

issues:
exclude-rules:
- path: _test\.go
linters:
- gosec
- unused
- linters:
- stylecheck
text: "ST1003:"
Expand Down
2 changes: 1 addition & 1 deletion executor/batchsubmitter/db_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ func TestSaveGetLocalBatchInfo(t *testing.T) {
localBatchInfo := executortypes.LocalBatchInfo{
Start: 1,
End: 2,
LastSubmissionTime: time.Unix(0, 10000),
LastSubmissionTime: time.Unix(0, 10000).UTC(),
BatchFileSize: 1000,
}

Expand Down
2 changes: 1 addition & 1 deletion executor/types/batch_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ func TestLocalBatchInfo(t *testing.T) {
batchInfo := LocalBatchInfo{
Start: 1,
End: 100,
LastSubmissionTime: time.Unix(0, 10000),
LastSubmissionTime: time.Unix(0, 10000).UTC(),
BatchFileSize: 100,
}

Expand Down

0 comments on commit 9877511

Please sign in to comment.