Fix python tests

Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
This commit is contained in:
Matthew Heon
2018-10-02 14:53:15 -04:00
parent b7c5fa70ab
commit 978aac6650

View File

@ -46,11 +46,11 @@ class TestPodsCtnrs(PodmanTestCase):
pod = pod.start()
status = FoldedString(pod.containersinfo[0]['status'])
# Race on whether container is still running or finished
self.assertIn(status, ('exited', 'running'))
self.assertIn(status, ('stopped', 'exited', 'running'))
pod = pod.restart()
status = FoldedString(pod.containersinfo[0]['status'])
self.assertIn(status, ('exited', 'running'))
self.assertIn(status, ('stopped', 'exited', 'running'))
killed = pod.kill()
self.assertEqual(pod, killed)