From c770f28f046f176b0cc0415202235b420bcf960f Mon Sep 17 00:00:00 2001 From: Brian Bland Date: Tue, 16 Feb 2016 17:48:07 -0800 Subject: [PATCH] [driver/s3aws] Fix TestStorageClass Fixes bug in TestStorageClass for s3aws driver where the "standard" file was checked for reduced-redundnancy storage. Signed-off-by: Brian Bland --- registry/storage/driver/s3-aws/s3_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/registry/storage/driver/s3-aws/s3_test.go b/registry/storage/driver/s3-aws/s3_test.go index 6816e6509..1137b3e27 100644 --- a/registry/storage/driver/s3-aws/s3_test.go +++ b/registry/storage/driver/s3-aws/s3_test.go @@ -186,7 +186,7 @@ func TestStorageClass(t *testing.T) { rrDriverUnwrapped := rrDriver.Base.StorageDriver.(*driver) resp, err = rrDriverUnwrapped.S3.GetObject(&s3.GetObjectInput{ Bucket: aws.String(rrDriverUnwrapped.Bucket), - Key: aws.String(rrDriverUnwrapped.s3Path(standardFilename)), + Key: aws.String(rrDriverUnwrapped.s3Path(rrFilename)), }) if err != nil { t.Fatalf("unexpected error retrieving reduced-redundancy storage file: %v", err)