diff --git a/registry/storage/driver/s3-aws/s3_test.go b/registry/storage/driver/s3-aws/s3_test.go index a1347c472..aea26658e 100644 --- a/registry/storage/driver/s3-aws/s3_test.go +++ b/registry/storage/driver/s3-aws/s3_test.go @@ -108,7 +108,7 @@ func init() { // Skip S3 storage driver tests if environment variable parameters are not provided skipS3 = func() string { - if accessKey == "" || secretKey == "" || bucket == "" || encrypt == "" { + if accessKey == "" || secretKey == "" || region == "" || bucket == "" || encrypt == "" { return "Must set AWS_ACCESS_KEY, AWS_SECRET_KEY, AWS_REGION, S3_BUCKET, and S3_ENCRYPT to run S3 tests" } return ""