tests,integration: ensure container is removed if start fails

Signed-off-by: Tomas Tomecek <ttomecek@redhat.com>
This commit is contained in:
Tomas Tomecek 2015-11-23 18:12:03 +01:00
parent b5fb6d216f
commit 55b67acb5b
1 changed files with 1 additions and 1 deletions

View File

@ -950,8 +950,8 @@ class AttachContainerTest(helpers.BaseTestCase):
container = self.client.create_container(BUSYBOX, '/bin/sh',
detach=True, stdin_open=True)
id = container['Id']
self.client.start(id)
self.tmp_containers.append(id)
self.client.start(id)
sock = self.client.attach_socket(container, ws=False)
self.assertTrue(sock.fileno() > -1)