diff --git a/registry/storage/driver/gcs/gcs_test.go b/registry/storage/driver/gcs/gcs_test.go index a76015d0..bfb21c3a 100644 --- a/registry/storage/driver/gcs/gcs_test.go +++ b/registry/storage/driver/gcs/gcs_test.go @@ -94,7 +94,7 @@ func init() { maxConcurrency: 8, } - return New(parameters) + return New(context.Background(), parameters) } testsuites.RegisterSuite(func() (storagedriver.StorageDriver, error) { diff --git a/registry/storage/driver/middleware/cloudfront/s3filter_test.go b/registry/storage/driver/middleware/cloudfront/s3filter_test.go index 7c55c635..bd789ed1 100644 --- a/registry/storage/driver/middleware/cloudfront/s3filter_test.go +++ b/registry/storage/driver/middleware/cloudfront/s3filter_test.go @@ -1,6 +1,7 @@ package middleware import ( + "context" "crypto/rand" "encoding/json" "fmt" diff --git a/registry/storage/driver/middleware/redirect/middleware.go b/registry/storage/driver/middleware/redirect/middleware.go index e4b0663b..3b1e4a30 100644 --- a/registry/storage/driver/middleware/redirect/middleware.go +++ b/registry/storage/driver/middleware/redirect/middleware.go @@ -1,6 +1,7 @@ package middleware import ( + "context" "fmt" "net/http" "net/url" diff --git a/registry/storage/driver/middleware/redirect/middleware_test.go b/registry/storage/driver/middleware/redirect/middleware_test.go index 7be383f5..7b7c0619 100644 --- a/registry/storage/driver/middleware/redirect/middleware_test.go +++ b/registry/storage/driver/middleware/redirect/middleware_test.go @@ -1,6 +1,7 @@ package middleware import ( + "context" "testing" "gopkg.in/check.v1" diff --git a/registry/storage/driver/s3-aws/s3_test.go b/registry/storage/driver/s3-aws/s3_test.go index 35af9249..5568ac86 100644 --- a/registry/storage/driver/s3-aws/s3_test.go +++ b/registry/storage/driver/s3-aws/s3_test.go @@ -2,6 +2,7 @@ package s3 import ( "bytes" + "context" "crypto/rand" "errors" "fmt"