Skip to content

Commit

Permalink
fix search flake
Browse files Browse the repository at this point in the history
There's no guarantee that the searched image will be returned, so only
make sure that "alpine" is mentioned somewhere.

Fixes: containers#16248
Signed-off-by: Valentin Rothberg <[email protected]>
  • Loading branch information
vrothberg committed Dec 14, 2022
1 parent fa87887 commit d03b69f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/e2e/search_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ registries = ['{{.Host}}:{{.Port}}']`
search.WaitWithDefaultTimeout()
Expect(search).Should(Exit(0))
Expect(len(search.OutputToStringArray())).To(BeNumerically(">", 1))
Expect(search.OutputToString()).To(ContainSubstring("docker.io/library/alpine"))
Expect(search.OutputToString()).To(ContainSubstring("alpine"))
})

It("podman search single registry flag", func() {
Expand Down

0 comments on commit d03b69f

Please sign in to comment.