Kaydet (Commit) 9b9fb0aa authored tarafından Joffrey F's avatar Joffrey F

Make sure data is written in prune test so space can be reclaimed

Signed-off-by: 's avatarJoffrey F <joffrey@docker.com>
üst bb82bcf7
...@@ -1139,7 +1139,9 @@ class PauseTest(BaseAPIIntegrationTest): ...@@ -1139,7 +1139,9 @@ class PauseTest(BaseAPIIntegrationTest):
class PruneTest(BaseAPIIntegrationTest): class PruneTest(BaseAPIIntegrationTest):
@requires_api_version('1.25') @requires_api_version('1.25')
def test_prune_containers(self): 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']) container2 = self.client.create_container(BUSYBOX, ['sleep', '9999'])
self.client.start(container1) self.client.start(container1)
self.client.start(container2) self.client.start(container2)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment