@@ -46,7 +46,7 @@ func TestFileAWS(t *testing.T) {
46
46
t .Errorf ("Expected 'token', got %s'" , credValues .SessionToken )
47
47
}
48
48
49
- os .Setenv ("AWS_SHARED_CREDENTIALS_FILE" , "credentials.sample" )
49
+ t .Setenv ("AWS_SHARED_CREDENTIALS_FILE" , "credentials.sample" )
50
50
creds = NewFileAWSCredentials ("" , "" )
51
51
credValues , err = creds .GetWithContext (defaultCredContext )
52
52
if err != nil {
@@ -68,7 +68,7 @@ func TestFileAWS(t *testing.T) {
68
68
t .Fatal (err )
69
69
}
70
70
71
- os .Setenv ("AWS_SHARED_CREDENTIALS_FILE" , filepath .Join (wd , "credentials.sample" ))
71
+ t .Setenv ("AWS_SHARED_CREDENTIALS_FILE" , filepath .Join (wd , "credentials.sample" ))
72
72
creds = NewFileAWSCredentials ("" , "" )
73
73
credValues , err = creds .GetWithContext (defaultCredContext )
74
74
if err != nil {
@@ -86,7 +86,7 @@ func TestFileAWS(t *testing.T) {
86
86
}
87
87
88
88
os .Clearenv ()
89
- os .Setenv ("AWS_PROFILE" , "no_token" )
89
+ t .Setenv ("AWS_PROFILE" , "no_token" )
90
90
91
91
creds = NewFileAWSCredentials ("credentials.sample" , "" )
92
92
credValues , err = creds .GetWithContext (defaultCredContext )
@@ -167,7 +167,7 @@ func TestFileMinioClient(t *testing.T) {
167
167
}
168
168
169
169
os .Clearenv ()
170
- os .Setenv ("MINIO_ALIAS" , "play" )
170
+ t .Setenv ("MINIO_ALIAS" , "play" )
171
171
172
172
creds = NewFileMinioClient ("config.json.sample" , "" )
173
173
credValues , err = creds .GetWithContext (defaultCredContext )
0 commit comments