diff options
| author | Joffrey F <joffrey@docker.com> | 2019-05-01 01:15:41 -0700 |
|---|---|---|
| committer | Joffrey F <joffrey@docker.com> | 2019-05-01 01:15:41 -0700 |
| commit | 1a4881acd9d8b84135ce9d71ff01325308d8a6b0 (patch) | |
| tree | c8a48f2c360b0815ee32279cd50d4c2dedb62aa8 | |
| parent | 34ffc5686546343eaa27d1fb8f9432237bdd1886 (diff) | |
| download | docker-py-1a4881acd9d8b84135ce9d71ff01325308d8a6b0.tar.gz | |
Improve low_timeout test resilience
Signed-off-by: Joffrey F <joffrey@docker.com>
| -rw-r--r-- | tests/integration/api_container_test.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/integration/api_container_test.py b/tests/integration/api_container_test.py index 9b770c7..df405ef 100644 --- a/tests/integration/api_container_test.py +++ b/tests/integration/api_container_test.py @@ -18,7 +18,7 @@ import six from .base import BUSYBOX, BaseAPIIntegrationTest from .. import helpers from ..helpers import ( - requires_api_version, ctrl_with, assert_cat_socket_detached_with_keys + assert_cat_socket_detached_with_keys, ctrl_with, requires_api_version, ) @@ -1163,10 +1163,10 @@ class RestartContainerTest(BaseAPIIntegrationTest): def test_restart_with_low_timeout(self): container = self.client.create_container(BUSYBOX, ['sleep', '9999']) self.client.start(container) - self.client.timeout = 1 - self.client.restart(container, timeout=3) + self.client.timeout = 3 + self.client.restart(container, timeout=1) self.client.timeout = None - self.client.restart(container, timeout=3) + self.client.restart(container, timeout=1) self.client.kill(container) def test_restart_with_dict_instead_of_id(self): |
