From 4a051d744482a29c09e613ae0c27d59f23b4b8e1 Mon Sep 17 00:00:00 2001 From: Xiaoxuan Wang Date: Mon, 9 Sep 2024 11:13:21 +0800 Subject: [PATCH] fix test Signed-off-by: Xiaoxuan Wang --- test/e2e/suite/command/pull.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/e2e/suite/command/pull.go b/test/e2e/suite/command/pull.go index 20583930d..d463cf582 100644 --- a/test/e2e/suite/command/pull.go +++ b/test/e2e/suite/command/pull.go @@ -271,7 +271,7 @@ var _ = Describe("OCI spec 1.1 registry users:", func() { tempDir := PrepareTempFiles() ref := RegistryRef(ZOTHost, ArtifactRepo, foobar.Tag) out := ORAS("pull", ref, "--format", "go-template={{.reference}}").WithWorkDir(tempDir).Exec().Out.Contents() - Expect(out).To(Equal("localhost:7000/command/artifacts@sha256:fd6ed2f36b5465244d5dc86cb4e7df0ab8a9d24adc57825099f522fe009a22bb")) + Expect(out).To(Equal([]byte("localhost:7000/command/artifacts@sha256:fd6ed2f36b5465244d5dc86cb4e7df0ab8a9d24adc57825099f522fe009a22bb"))) }) It("should pull specific platform", func() {