Skip to content

Commit

Permalink
test: Adjust testRunImageUser() for RestartPolicy API change too
Browse files Browse the repository at this point in the history
Forgotten in commit ff9c7f3
  • Loading branch information
martinpitt committed Apr 15, 2024
1 parent ff9c7f3 commit 8c5c999
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/check-application
Original file line number Diff line number Diff line change
Expand Up @@ -1841,7 +1841,8 @@ class TestApplication(testlib.MachineCase):
self.assertEqual(restartPolicy, '{on-failure 3}')
else:
# No restart policy
self.assertEqual(restartPolicy, '{ 0}')
# format changed in podman 5.1 (https://github.com/containers/podman/pull/22322)
self.assertIn(restartPolicy, ['{ 0}', '{no 0}'])

b.wait(lambda: "3" in self.execute(auth, "podman logs busybox-with-tty"))

Expand Down

0 comments on commit 8c5c999

Please sign in to comment.