Skip to content

Commit

Permalink
Merge pull request #18513 from edsantiago/wait_wait
Browse files Browse the repository at this point in the history
e2e: fix race in a play-kube test
  • Loading branch information
openshift-merge-robot authored May 9, 2023
2 parents 1a78a4e + 9dc107e commit d49a537
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions test/e2e/play_kube_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2803,10 +2803,15 @@ var _ = Describe("Podman play kube", func() {
kube.WaitWithDefaultTimeout()
Expect(kube).Should(Exit(0))

logs := podmanTest.Podman([]string{"logs", getCtrNameInPod(pod)})
ctrName := getCtrNameInPod(pod)
wait := podmanTest.Podman([]string{"wait", ctrName})
wait.WaitWithDefaultTimeout()
Expect(wait).Should(Exit(0), "podman wait %s", ctrName)

logs := podmanTest.Podman([]string{"logs", ctrName})
logs.WaitWithDefaultTimeout()
Expect(logs).Should(Exit(0))
Expect(logs.ErrorToString()).To(ContainSubstring("Operation not permitted"))
Expect(logs).Should(Exit(0), "podman logs %s", ctrName)
Expect(logs.ErrorToString()).To(ContainSubstring("getcwd: Operation not permitted"))
})

It("podman play kube seccomp pod level", func() {
Expand Down

0 comments on commit d49a537

Please sign in to comment.