Skip to content

Commit 0af6a3a

Browse files
committed
fix lint issues
Signed-off-by: Pablo Chacin <pablochacin@gmail.com>
1 parent 6f1c513 commit 0af6a3a

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

pkg/lock/s3_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ func setupS3Lock(t *testing.T, conf S3Config) Lock {
2626
t.Fatalf("setup s3 client: %v", err)
2727
}
2828
t.Cleanup(
29-
func() { terminate(t.Context()) },
29+
func() { terminate(t.Context()) }, //nolint:errcheck
3030
)
3131

3232
bucket := strings.ReplaceAll(strings.ToLower(t.Name()), "_", "-")
@@ -60,7 +60,7 @@ func TestNewS3Lock(t *testing.T) {
6060
t.Fatalf("setup s3 client: %v", err)
6161
}
6262
t.Cleanup(
63-
func() { terminate(t.Context()) },
63+
func() { terminate(t.Context()) }, //nolint:errcheck
6464
)
6565

6666
testCases := []struct {

pkg/store/s3/s3_test.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ import (
1313
"strings"
1414
"testing"
1515

16-
"github.com/grafana/s3-mock"
17-
1816
"github.com/aws/aws-sdk-go-v2/aws"
1917
"github.com/aws/aws-sdk-go-v2/service/s3"
2018
"github.com/aws/aws-sdk-go-v2/service/s3/types"
19+
2120
"github.com/grafana/k6build/pkg/store"
21+
"github.com/grafana/s3-mock"
2222
)
2323

2424
type object struct {
@@ -33,9 +33,9 @@ func setupStore(t *testing.T, preload []object) store.ObjectStore {
3333
if err != nil {
3434
t.Fatalf("setting up test %v", err)
3535
}
36-
t.Cleanup(func() {
37-
terminate(t.Context())
38-
})
36+
t.Cleanup(
37+
func() { terminate(t.Context()) }, //nolint:errcheck
38+
)
3939

4040
bucket := strings.ReplaceAll(strings.ToLower(t.Name()), "_", "-")
4141
_, err = client.CreateBucket(t.Context(), &s3.CreateBucketInput{

0 commit comments

Comments
 (0)