From c38f2a8ea20eea255ecaa8e71642f31727627921 Mon Sep 17 00:00:00 2001 From: mpl Date: Wed, 27 Jan 2016 15:56:55 +0100 Subject: [PATCH] pkg/misc/amazon/s3: fix test for Client Because omitted in b9aec12f31bbd263979ac4157824675f3438c237 Change-Id: I2ca82360b3ff90d65be6f84eabdb785efcee99a9 --- pkg/misc/amazon/s3/client_test.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pkg/misc/amazon/s3/client_test.go b/pkg/misc/amazon/s3/client_test.go index d8cbd4e5a..2e6f63def 100644 --- a/pkg/misc/amazon/s3/client_test.go +++ b/pkg/misc/amazon/s3/client_test.go @@ -22,6 +22,8 @@ import ( "reflect" "strings" "testing" + + "go4.org/syncutil" ) var tc *Client @@ -33,7 +35,11 @@ func getTestClient(t *testing.T) bool { t.Logf("Skipping test; no AWS_ACCESS_KEY_ID or AWS_ACCESS_KEY_SECRET set in environment") return false } - tc = &Client{&Auth{AccessKey: accessKey, SecretAccessKey: secret}, http.DefaultTransport} + tc = &Client{ + Auth: &Auth{AccessKey: accessKey, SecretAccessKey: secret}, + Transport: http.DefaultTransport, + PutGate: syncutil.NewGate(5), + } return true }