summaryrefslogtreecommitdiff
path: root/contrib/python/podman/test/test_containers.py
diff options
context:
space:
mode:
authorJhon Honce <jhonce@redhat.com>2018-08-20 08:40:42 -0700
committerAtomic Bot <atomic-devel@projectatomic.io>2018-08-20 21:07:09 +0000
commit75588a4333aef6a3830cd120136a664418d336e9 (patch)
tree07f4db5eef955817acb0a9d4a8dae037748c543e /contrib/python/podman/test/test_containers.py
parent937398abcfa9848b36efd95d845d98d865578c71 (diff)
downloadpodman-75588a4333aef6a3830cd120136a664418d336e9.tar.gz
podman-75588a4333aef6a3830cd120136a664418d336e9.tar.bz2
podman-75588a4333aef6a3830cd120136a664418d336e9.zip
Add retry decorator for flakey tests
* Update doc strings Signed-off-by: Jhon Honce <jhonce@redhat.com> Closes: #1302 Approved by: baude
Diffstat (limited to 'contrib/python/podman/test/test_containers.py')
-rw-r--r--contrib/python/podman/test/test_containers.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/contrib/python/podman/test/test_containers.py b/contrib/python/podman/test/test_containers.py
index f84b88f4c..167aae68b 100644
--- a/contrib/python/podman/test/test_containers.py
+++ b/contrib/python/podman/test/test_containers.py
@@ -2,6 +2,7 @@ import os
import signal
import unittest
from test.podman_testcase import PodmanTestCase
+from test.retry_decorator import retry
import podman
@@ -217,6 +218,8 @@ class TestContainers(PodmanTestCase):
self.assertTrue(ctnr.running)
self.assertTrue(ctnr.status, 'running')
+ # creating cgoups can be flakey
+ @retry(podman.libs.errors.ErrorOccurred, tries=16, delay=2, print_=print)
def test_stats(self):
self.assertTrue(self.alpine_ctnr.running)