Skip to content

Commit 5e28dca

Browse files
authored
Merge pull request #1909 from yongtang/somevolume-cleanup
Clean up created volume from test_run_with_named_volume
2 parents 14eec99 + cbbc37a commit 5e28dca

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/integration/models_containers_test.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ def test_run_with_volume(self):
5555

5656
def test_run_with_named_volume(self):
5757
client = docker.from_env(version=TEST_API_VERSION)
58-
client.volumes.create(name="somevolume")
58+
volume = client.volumes.create(name="somevolume")
59+
self.tmp_volumes.append(volume.id)
5960

6061
container = client.containers.run(
6162
"alpine", "sh -c 'echo \"hello\" > /insidecontainer/test'",

0 commit comments

Comments
 (0)