diff options
author | Joffrey F <joffrey@docker.com> | 2017-06-20 16:07:15 -0700 |
---|---|---|
committer | Joffrey F <joffrey@docker.com> | 2017-06-20 16:07:15 -0700 |
commit | 9b9fb0aa0140cae1fc2c6eb549f2615501453eb9 (patch) | |
tree | 14255a2cecd06e6d45d1b82bd2b1dc7e3bf0a132 | |
parent | bb82bcf7841107399ef04633b7c638380fbc9d9a (diff) | |
download | docker-py-9b9fb0aa0140cae1fc2c6eb549f2615501453eb9.tar.gz |
Make sure data is written in prune test so space can be reclaimedmoby33735
Signed-off-by: Joffrey F <joffrey@docker.com>
-rw-r--r-- | tests/integration/api_container_test.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/integration/api_container_test.py b/tests/integration/api_container_test.py index de3fe71..f8b474a 100644 --- a/tests/integration/api_container_test.py +++ b/tests/integration/api_container_test.py @@ -1139,7 +1139,9 @@ class PauseTest(BaseAPIIntegrationTest): class PruneTest(BaseAPIIntegrationTest): @requires_api_version('1.25') def test_prune_containers(self): - container1 = self.client.create_container(BUSYBOX, ['echo', 'hello']) + container1 = self.client.create_container( + BUSYBOX, ['sh', '-c', 'echo hello > /data.txt'] + ) container2 = self.client.create_container(BUSYBOX, ['sleep', '9999']) self.client.start(container1) self.client.start(container2) |