pkg/misc/amazon/s3: fix test for Client

Because omitted in b9aec12f31

Change-Id: I2ca82360b3ff90d65be6f84eabdb785efcee99a9
This commit is contained in:
mpl 2016-01-27 15:56:55 +01:00
parent ba0126e899
commit c38f2a8ea2
1 changed files with 7 additions and 1 deletions

View File

@ -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
}