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 Nov 28, 2022
1 parent 3ca8271 commit c7ea09b
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 @@ -77,7 +77,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 c7ea09b

Please sign in to comment.