File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -62,8 +62,10 @@ def test_docker_container_with_reuse_reuse_enabled_ryuk_disabled(monkeypatch):
6262 with DockerContainer ("hello-world" ).with_reuse () as container :
6363 id = container ._container .id
6464 wait_for_logs (container , "Hello from Docker!" )
65+
6566 containers = DockerClient ().client .containers .list (all = True )
6667 assert id in [container .id for container in containers ]
68+
6769 # Cleanup after keeping container alive (with_reuse)
6870 container ._container .remove (force = True )
6971
@@ -80,6 +82,7 @@ def test_docker_container_with_reuse_reuse_enabled_ryuk_disabled_same_id(monkeyp
8082 id = container ._container .id
8183 with DockerContainer ("hello-world" ).with_reuse () as container :
8284 assert id == container ._container .id
85+
8386 # Cleanup after keeping container alive (with_reuse)
8487 container ._container .remove (force = True )
8588
You can’t perform that action at this time.
0 commit comments