Skip to content

Commit b8f4c7a

Browse files
authored
Merge pull request #2520 from dmcgowan/use-pause-multiplatform-test
Update multi-arch image tests
2 parents d3887f6 + 438b3cb commit b8f4c7a

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

client_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ func TestImagePullAllPlatforms(t *testing.T) {
201201
defer cancel()
202202

203203
cs := client.ContentStore()
204-
img, err := client.Fetch(ctx, testImage)
204+
img, err := client.Fetch(ctx, "docker.io/library/busybox:latest")
205205
if err != nil {
206206
t.Fatal(err)
207207
}
@@ -249,7 +249,7 @@ func TestImagePullSomePlatforms(t *testing.T) {
249249
opts = append(opts, WithPlatform(platform))
250250
}
251251

252-
img, err := client.Fetch(ctx, "docker.io/library/busybox:latest", opts...)
252+
img, err := client.Fetch(ctx, "k8s.gcr.io/pause:3.1", opts...)
253253
if err != nil {
254254
t.Fatal(err)
255255
}

image_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ func TestImageIsUnpacked(t *testing.T) {
4545
}
4646

4747
// By default pull does not unpack an image
48-
image, err := client.Pull(ctx, imageName)
48+
image, err := client.Pull(ctx, imageName, WithPlatform("linux/amd64"))
4949
if err != nil {
5050
t.Fatal(err)
5151
}

0 commit comments

Comments
 (0)