Răsfoiți Sursa

Remove remaining containers on test_build_run

Signed-off-by: Ulysses Souza <[email protected]>
Ulysses Souza 6 ani în urmă
părinte
comite
8a9575bd0d
1 a modificat fișierele cu 3 adăugiri și 0 ștergeri
  1. 3 0
      tests/acceptance/cli_test.py

+ 3 - 0
tests/acceptance/cli_test.py

@@ -793,6 +793,9 @@ class CLITestCase(DockerClientTestCase):
         ]
         assert containers
 
+        for c in self.project.client.containers(all=True):
+            self.addCleanup(self.project.client.remove_container, c, force=True)
+
     def test_build_shm_size_build_option(self):
         pull_busybox(self.client)
         self.base_dir = 'tests/fixtures/build-shm-size'