Skip to content

Commit d531e78

Browse files
committed
Modified image_enc_test to use a different image from other tests
Signed-off-by: Brandon Lum <[email protected]>
1 parent c118c45 commit d531e78

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

image_enc_test.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,12 @@ import (
3131
ocispec "github.com/opencontainers/image-spec/specs-go/v1"
3232
)
3333

34-
func setupBusyboxImage(t *testing.T) {
34+
func setupNginxImage(t *testing.T) {
3535
if runtime.GOOS == "windows" {
3636
t.Skip()
3737
}
3838

39-
const imageName = "docker.io/library/busybox:latest"
39+
const imageName = "docker.io/library/nginx:latest"
4040
ctx, cancel := testContext(t)
4141
defer cancel()
4242

@@ -65,15 +65,15 @@ func setupBusyboxImage(t *testing.T) {
6565
}
6666

6767
func TestImageEncryption(t *testing.T) {
68-
setupBusyboxImage(t)
68+
setupNginxImage(t)
6969

7070
publicKey, privateKey, err := utils.CreateRSATestKey(2048, nil, true)
7171
if err != nil {
7272
t.Fatal(err)
7373
}
7474

75-
const imageName = "docker.io/library/busybox:latest"
76-
const encImageName = "docker.io/library/busybox:enc"
75+
const imageName = "docker.io/library/nginx:latest"
76+
const encImageName = "docker.io/library/nginx:enc"
7777
ctx, cancel := testContext(t)
7878
defer cancel()
7979

@@ -165,7 +165,7 @@ func TestImageEncryption(t *testing.T) {
165165
// properly deleted
166166
defer func() {
167167
done(ctx)
168-
client.ImageService().Delete(ctx, imageName, images.SynchronousDelete())
168+
client.ImageService().Delete(ctx, imageName)
169169
client.ImageService().Delete(ctx, encImageName, images.SynchronousDelete())
170170
}()
171171

0 commit comments

Comments
 (0)