File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff 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 {
Original file line number Diff line number Diff 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
2424type 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 {
You can’t perform that action at this time.
0 commit comments