Merge pull request #5235 from estesp/testimage-userns-ro

Use specific image for user namespaces tests
This commit is contained in:
Akihiro Suda 2021-03-20 14:34:14 +09:00 committed by GitHub
commit 6150170d95
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -55,6 +55,8 @@ import (
"golang.org/x/sys/unix" "golang.org/x/sys/unix"
) )
const testUserNSImage = "mirror.gcr.io/library/alpine:latest"
// TestRegressionIssue4769 verifies the number of task exit events. // TestRegressionIssue4769 verifies the number of task exit events.
// //
// Issue: https://github.com/containerd/containerd/issues/4769. // Issue: https://github.com/containerd/containerd/issues/4769.
@ -1596,7 +1598,7 @@ func testUserNamespaces(t *testing.T, readonlyRootFS bool) {
) )
defer cancel() defer cancel()
image, err = client.GetImage(ctx, testImage) image, err = client.Pull(ctx, testUserNSImage, WithPullUnpack)
if err != nil { if err != nil {
t.Fatal(err) t.Fatal(err)
} }