mirror of https://github.com/perkeep/perkeep.git
pkg/misc/amazon/s3: fix test for Client
Because omitted in b9aec12f31
Change-Id: I2ca82360b3ff90d65be6f84eabdb785efcee99a9
This commit is contained in:
parent
ba0126e899
commit
c38f2a8ea2
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue