File tree 1 file changed +3
-0
lines changed
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):
62
62
with DockerContainer ("hello-world" ).with_reuse () as container :
63
63
id = container ._container .id
64
64
wait_for_logs (container , "Hello from Docker!" )
65
+
65
66
containers = DockerClient ().client .containers .list (all = True )
66
67
assert id in [container .id for container in containers ]
68
+
67
69
# Cleanup after keeping container alive (with_reuse)
68
70
container ._container .remove (force = True )
69
71
@@ -80,6 +82,7 @@ def test_docker_container_with_reuse_reuse_enabled_ryuk_disabled_same_id(monkeyp
80
82
id = container ._container .id
81
83
with DockerContainer ("hello-world" ).with_reuse () as container :
82
84
assert id == container ._container .id
85
+
83
86
# Cleanup after keeping container alive (with_reuse)
84
87
container ._container .remove (force = True )
85
88
You can’t perform that action at this time.
0 commit comments