summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-08-18 20:46:54 +0200
committerGitHub <noreply@github.com>2020-08-18 20:46:54 +0200
commit13b307e7cc6da25a1831ae6a69888ca10ecedf26 (patch)
tree9747f22085e20600e634c797cdaf7e2ee7a46547
parentc3c902f8316190cf35617f3991c06c6d78f3aff7 (diff)
parent318336ad4bdfe8bda531f9f580d8077e19a0e993 (diff)
downloadpodman-13b307e7cc6da25a1831ae6a69888ca10ecedf26.tar.gz
podman-13b307e7cc6da25a1831ae6a69888ca10ecedf26.tar.bz2
podman-13b307e7cc6da25a1831ae6a69888ca10ecedf26.zip
Merge pull request #7338 from edsantiago/image_trust_flake_fix
flake fix: podman image trust
-rw-r--r--test/e2e/trust_test.go9
1 files changed, 6 insertions, 3 deletions
diff --git a/test/e2e/trust_test.go b/test/e2e/trust_test.go
index ecdf27a2e..82b0f9f26 100644
--- a/test/e2e/trust_test.go
+++ b/test/e2e/trust_test.go
@@ -47,9 +47,12 @@ var _ = Describe("Podman trust", func() {
Expect(session.ExitCode()).To(Equal(0))
outArray := session.OutputToStringArray()
Expect(len(outArray)).To(Equal(3))
- Expect(outArray[0]).Should(ContainSubstring("accept"))
- Expect(outArray[1]).Should(ContainSubstring("reject"))
- Expect(outArray[2]).Should(ContainSubstring("signed"))
+
+ // image order is not guaranteed. All we can do is check that
+ // these strings appear in output, we can't cross-check them.
+ Expect(session.OutputToString()).To(ContainSubstring("accept"))
+ Expect(session.OutputToString()).To(ContainSubstring("reject"))
+ Expect(session.OutputToString()).To(ContainSubstring("signed"))
})
It("podman image trust set", func() {