Ignore errors from API about not being able to kill a container.

Signed-off-by: Daniel Nephin <dnephin@docker.com>
This commit is contained in:
Daniel Nephin 2015-10-09 15:42:15 -04:00 committed by Joffrey F
parent afab5c76ea
commit c64b7cbb10
1 changed files with 1 additions and 2 deletions

View File

@ -25,8 +25,7 @@ class DockerClientTestCase(unittest.TestCase):
for c in self.client.containers(
all=True,
filters={'label': '%s=composetest' % LABEL_PROJECT}):
self.client.kill(c['Id'])
self.client.remove_container(c['Id'])
self.client.remove_container(c['Id'], force=True)
for i in self.client.images(
filters={'label': 'com.docker.compose.test_image'}):
self.client.remove_image(i)