浏览代码

Delete all containers on the Docker daemon before running test

Aanand Prasad 12 年之前
父节点
当前提交
83a086b865
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      plum/tests/service_test.py

+ 2 - 1
plum/tests/service_test.py

@@ -8,8 +8,9 @@ class ServiceTestCase(TestCase):
         self.client = Client('http://127.0.0.1:4243')
         self.client.pull('ubuntu')
 
-        for c in self.client.containers():
+        for c in self.client.containers(all=True):
             self.client.kill(c['Id'])
+            self.client.remove_container(c['Id'])
 
         self.service = Service(
             client=self.client,