Skip to content

Commit

Permalink
Linting fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
gdavison committed Nov 7, 2023
1 parent ad5ee4e commit 1fdc2cd
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions internal/provider/provider_config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (

// TestSharedConfigFileParsing prevents regression in shared config file parsing
// * https://github.com/aws/aws-sdk-go-v2/issues/2349: indented keys
func TestSharedConfigFileParsing(t *testing.T) {
func TestSharedConfigFileParsing(t *testing.T) { //nolint:paralleltest
testcases := map[string]struct {
Config map[string]any
SharedConfigurationFile string
Expand All @@ -30,16 +30,17 @@ func TestSharedConfigFileParsing(t *testing.T) {
SharedConfigurationFile: `
[default]
region = us-west-2
`,
`, //lintignore:AWSAT003
Check: func(t *testing.T, meta *conns.AWSClient) {
//lintignore:AWSAT003
if a, e := meta.Region, "us-west-2"; a != e {
t.Errorf("expected region %q, got %q", e, a)
}
},
},
}

for name, tc := range testcases {
for name, tc := range testcases { //nolint:paralleltest
tc := tc

t.Run(name, func(t *testing.T) {
Expand All @@ -64,7 +65,7 @@ func TestSharedConfigFileParsing(t *testing.T) {

defer os.Remove(file.Name())

err = os.WriteFile(file.Name(), []byte(tc.SharedConfigurationFile), 0600) //nolint:gomnd
err = os.WriteFile(file.Name(), []byte(tc.SharedConfigurationFile), 0600)

if err != nil {
t.Fatalf("unexpected error writing shared configuration file: %s", err)
Expand Down

0 comments on commit 1fdc2cd

Please sign in to comment.