pkg/misc/amazon/s3: Fix test broken by commit bf8d6bdb.

Commit bf8d6bdb (s3: auto-select correct region, handle buckets with
dots in hostname) changed the definition of s3.Client replacing the
second field, which was of type *http.Client, with a field of type
http.RoundTripper. But the test utility function getTestClient() was
not modified accordingly. Fix this to make `go test' in
pkg/misc/amazon/s3 succeed again (without this fix the test fails to
build).

Change-Id: Ida383e2050e215cc2446303c0ce59aa7ab6e7981
This commit is contained in:
Brian Gitonga Marete 2014-05-13 14:23:04 +03:00
parent b7b72fe617
commit 630ba8c68f
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ 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.DefaultClient}
tc = &Client{&Auth{AccessKey: accessKey, SecretAccessKey: secret}, http.DefaultTransport}
return true
}