Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
manuelarte committed Nov 18, 2024
1 parent 3d081ad commit fdb7307
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/go_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ jobs:
- name: golangci-lint
uses: golangci/golangci-lint-action@v6.1.1
with:
version: v1.59.1
version: v1.62.0
- name: test
run: make test
3 changes: 3 additions & 0 deletions gorm_lock_options.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (

type LockOption func(*GormLocker)

//nolint:unused
func WithJobIdentifier(f func(ctx context.Context, key string) string) LockOption {
return func(l *GormLocker) {
l.jobIdentifier = f
Expand All @@ -28,6 +29,8 @@ func WithTTL(ttl time.Duration) LockOption {
}

// WithCleanInterval the time interval to run clean operation.
//
//nolint:unused
func WithCleanInterval(interval time.Duration) LockOption {
return func(l *GormLocker) {
l.interval = interval
Expand Down
2 changes: 1 addition & 1 deletion gorm_lock_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"github.com/go-co-op/gocron"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
testcontainers "github.com/testcontainers/testcontainers-go"
"github.com/testcontainers/testcontainers-go"
testcontainerspostgres "github.com/testcontainers/testcontainers-go/modules/postgres"
"github.com/testcontainers/testcontainers-go/wait"
"gorm.io/driver/postgres"
Expand Down

0 comments on commit fdb7307

Please sign in to comment.