From fdb73078bbed82c1e0b26c1c1392b92bdf9ad11b Mon Sep 17 00:00:00 2001 From: Manuel Doncel Martos Date: Mon, 18 Nov 2024 21:43:13 +0100 Subject: [PATCH] test --- .github/workflows/go_test.yml | 2 +- gorm_lock_options.go | 3 +++ gorm_lock_test.go | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/go_test.yml b/.github/workflows/go_test.yml index 1494121..1184277 100644 --- a/.github/workflows/go_test.yml +++ b/.github/workflows/go_test.yml @@ -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 diff --git a/gorm_lock_options.go b/gorm_lock_options.go index 63d5b92..cf6de69 100644 --- a/gorm_lock_options.go +++ b/gorm_lock_options.go @@ -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 @@ -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 diff --git a/gorm_lock_test.go b/gorm_lock_test.go index d83da1b..0673b75 100644 --- a/gorm_lock_test.go +++ b/gorm_lock_test.go @@ -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"