mirror of
https://github.com/containers/podman.git
synced 2025-06-20 00:51:16 +08:00
Fix python tests
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
This commit is contained in:
@ -46,11 +46,11 @@ class TestPodsCtnrs(PodmanTestCase):
|
|||||||
pod = pod.start()
|
pod = pod.start()
|
||||||
status = FoldedString(pod.containersinfo[0]['status'])
|
status = FoldedString(pod.containersinfo[0]['status'])
|
||||||
# Race on whether container is still running or finished
|
# Race on whether container is still running or finished
|
||||||
self.assertIn(status, ('exited', 'running'))
|
self.assertIn(status, ('stopped', 'exited', 'running'))
|
||||||
|
|
||||||
pod = pod.restart()
|
pod = pod.restart()
|
||||||
status = FoldedString(pod.containersinfo[0]['status'])
|
status = FoldedString(pod.containersinfo[0]['status'])
|
||||||
self.assertIn(status, ('exited', 'running'))
|
self.assertIn(status, ('stopped', 'exited', 'running'))
|
||||||
|
|
||||||
killed = pod.kill()
|
killed = pod.kill()
|
||||||
self.assertEqual(pod, killed)
|
self.assertEqual(pod, killed)
|
||||||
|
Reference in New Issue
Block a user