Add ability to open bucket using S3 object for testing purposes.

This commit is contained in:
Chris Howey 2015-05-15 17:29:48 -05:00
parent b793261ba1
commit 4aa75994b0
2 changed files with 6 additions and 1 deletions

View file

@ -23,7 +23,7 @@ func setupS3Backend(t *testing.T) *bes3.S3 {
t.Logf("created s3 backend locally at %s", testServer.URL)
return bes3.S3{bucket: bucket, path: "testbucket"}
return bes3.OpenS3Bucket(bucket, "testbucket")
}
func teardownS3Backend(t *testing.T, b *bes3.S3) {