summaryrefslogtreecommitdiff
path: root/tests/acceptance/cli_test.py
diff options
context:
space:
mode:
authorJoffrey F <joffrey@docker.com>2018-01-11 12:24:38 -0800
committerJoffrey F <joffrey@docker.com>2018-01-11 12:37:46 -0800
commite174c3fd1c10222183afc5822e47aeca4e1c466c (patch)
tree8eace75e249ca9ab2508345cf06f831d4176e763 /tests/acceptance/cli_test.py
parentac34a8302b4a9c4f384360d8728a4c34274a64fe (diff)
Revert -d/--timeout exclusion
Signed-off-by: Joffrey F <joffrey@docker.com>
Diffstat (limited to 'tests/acceptance/cli_test.py')
-rw-r--r--tests/acceptance/cli_test.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/acceptance/cli_test.py b/tests/acceptance/cli_test.py
index cb583b34..fa051fec 100644
--- a/tests/acceptance/cli_test.py
+++ b/tests/acceptance/cli_test.py
@@ -1361,9 +1361,12 @@ class CLITestCase(DockerClientTestCase):
['up', '-d', '--force-recreate', '--no-recreate'],
returncode=1)
- def test_up_with_timeout_detached(self):
- result = self.dispatch(['up', '-d', '-t', '1'], returncode=1)
- assert "-d and --timeout cannot be combined." in result.stderr
+ def test_up_with_timeout(self):
+ self.dispatch(['up', '-d', '-t', '1'])
+ service = self.project.get_service('simple')
+ another = self.project.get_service('another')
+ assert len(service.containers()) == 1
+ assert len(another.containers()) == 1
@mock.patch.dict(os.environ)
def test_up_with_ignore_remove_orphans(self):