Skip to content

Commit

Permalink
Wait after killing odo during integration test (#6816)
Browse files Browse the repository at this point in the history
* Wait after killing odo during integration test

* Make podman replacement terminate sooner
  • Loading branch information
feloy authored May 15, 2023
1 parent 2e0a882 commit d23789a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tests/integration/cmd_dev_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ var _ = Describe("odo dev command tests", func() {
err = helper.CreateFileWithContentAndPerm(delayer, `#!/bin/bash
echo Delaying command execution... >&2
sleep 7200
sleep 10
echo "$@"
`, 0755)
Expect(err).ShouldNot(HaveOccurred())
Expand All @@ -115,7 +115,10 @@ echo "$@"
},
})
Expect(err).ShouldNot(HaveOccurred())
defer devSession.Kill()
defer func() {
devSession.Kill()
devSession.WaitEnd()
}()

Expect(string(stderrBytes)).Should(MatchRegexp("timeout \\([^()]+\\) while waiting for Podman version"))
})
Expand Down

0 comments on commit d23789a

Please sign in to comment.