From 7230b1cd31d5954168baf00db7a73206e7dcc86f Mon Sep 17 00:00:00 2001 From: Grachev Mikhail Date: Sun, 31 Mar 2019 20:10:51 +0300 Subject: [PATCH] test: remove unused parameter (#995) --- internal/pipe/s3/s3_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/pipe/s3/s3_test.go b/internal/pipe/s3/s3_test.go index a5094c179..7c5c65a0e 100644 --- a/internal/pipe/s3/s3_test.go +++ b/internal/pipe/s3/s3_test.go @@ -84,7 +84,7 @@ func TestUpload(t *testing.T) { }) start(t) defer stop(t) - setCredentials(t) + setCredentials() assert.NoError(t, Pipe{}.Default(ctx)) assert.NoError(t, Pipe{}.Publish(ctx)) } @@ -122,7 +122,7 @@ func TestUploadCustomBucketID(t *testing.T) { }) start(t) defer stop(t) - setCredentials(t) + setCredentials() assert.NoError(t, Pipe{}.Default(ctx)) assert.NoError(t, Pipe{}.Publish(ctx)) } @@ -159,12 +159,12 @@ func TestUploadInvalidCustomBucketID(t *testing.T) { }) start(t) defer stop(t) - setCredentials(t) + setCredentials() assert.NoError(t, Pipe{}.Default(ctx)) assert.Error(t, Pipe{}.Publish(ctx)) } -func setCredentials(t *testing.T) { +func setCredentials() { // this comes from the testdata/config/config.json file - not real aws keys os.Setenv("AWS_ACCESS_KEY_ID", "WPXKJC7CZQCFPKY5727N") os.Setenv("AWS_SECRET_ACCESS_KEY", "eHCSajxLvl94l36gIMlzZ/oW2O0rYYK+cVn5jNT2")