From d91a3239ecac7e12e378fa3131c0e4e11ca02994 Mon Sep 17 00:00:00 2001 From: Carlos Alexandro Becker Date: Tue, 19 Mar 2019 21:34:37 -0300 Subject: [PATCH] test: make aws session test more reliable --- internal/pipe/s3/awssession_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/pipe/s3/awssession_test.go b/internal/pipe/s3/awssession_test.go index b8c0e1ed8..3fc7f7762 100644 --- a/internal/pipe/s3/awssession_test.go +++ b/internal/pipe/s3/awssession_test.go @@ -190,6 +190,7 @@ func Test_awsSession_fail(t *testing.T) { t.Run(tt.name, func(t *testing.T) { clearnEnv() defer clearnEnv() + os.Setenv("AWS_SHARED_CREDENTIALS_FILE", "/nope") builder := newSessionBuilder() sess := builder.Build()