@@ -46,7 +46,7 @@ func TestPullthroughServeBlob(t *testing.T) {
4646 os .Setenv ("OPENSHIFT_DEFAULT_REGISTRY" , serverURL .Host )
4747 testImage .DockerImageReference = fmt .Sprintf ("%s/%s@%s" , serverURL .Host , repoName , testImage .Name )
4848
49- fos , client , imageClient := registrytest .NewFakeOpenShiftWithClient ()
49+ fos , _ , imageClient := registrytest .NewFakeOpenShiftWithClient ()
5050 registrytest .AddImageStream (t , fos , namespace , name , map [string ]string {
5151 imageapi .InsecureRepositoryAnnotation : "true" ,
5252 })
@@ -137,7 +137,7 @@ func TestPullthroughServeBlob(t *testing.T) {
137137
138138 ctx := WithTestPassthroughToUpstream (context .Background (), false )
139139 repo := newTestRepository (t , namespace , name , testRepositoryOptions {
140- client : registryclient .NewFakeRegistryAPIClient (client , nil , imageClient ),
140+ client : registryclient .NewFakeRegistryAPIClient (nil , imageClient ),
141141 enablePullThrough : true ,
142142 })
143143 ptbs := & pullthroughBlobStore {
@@ -278,7 +278,7 @@ func TestPullthroughServeNotSeekableBlob(t *testing.T) {
278278 }
279279 testImage .DockerImageReference = fmt .Sprintf ("%s/%s@%s" , serverURL .Host , repoName , testImage .Name )
280280
281- fos , client , imageClient := registrytest .NewFakeOpenShiftWithClient ()
281+ fos , _ , imageClient := registrytest .NewFakeOpenShiftWithClient ()
282282 registrytest .AddImageStream (t , fos , namespace , name , map [string ]string {
283283 imageapi .InsecureRepositoryAnnotation : "true" ,
284284 })
@@ -288,7 +288,7 @@ func TestPullthroughServeNotSeekableBlob(t *testing.T) {
288288
289289 ctx := WithTestPassthroughToUpstream (context .Background (), false )
290290 repo := newTestRepository (t , namespace , name , testRepositoryOptions {
291- client : registryclient .NewFakeRegistryAPIClient (client , nil , imageClient ),
291+ client : registryclient .NewFakeRegistryAPIClient (nil , imageClient ),
292292 enablePullThrough : true ,
293293 })
294294 ptbs := & pullthroughBlobStore {
@@ -598,7 +598,7 @@ func TestPullthroughServeBlobInsecure(t *testing.T) {
598598 expectedBytesServed : int64 (m1img .DockerImageLayers [0 ].LayerSize ),
599599 },
600600 } {
601- fos , client , imageClient := registrytest .NewFakeOpenShiftWithClient ()
601+ fos , _ , imageClient := registrytest .NewFakeOpenShiftWithClient ()
602602
603603 tc .fakeOpenShiftInit (fos )
604604
@@ -607,7 +607,7 @@ func TestPullthroughServeBlobInsecure(t *testing.T) {
607607 ctx := WithTestPassthroughToUpstream (context .Background (), false )
608608
609609 repo := newTestRepository (t , namespace , repo1 , testRepositoryOptions {
610- client : registryclient .NewFakeRegistryAPIClient (client , nil , imageClient ),
610+ client : registryclient .NewFakeRegistryAPIClient (nil , imageClient ),
611611 enablePullThrough : true ,
612612 })
613613
0 commit comments