Merge pull request #1659 from docker/moby33735

Make sure data is written in prune test so space can be reclaimed
This commit is contained in:
Joffrey F 2017-06-20 16:29:18 -07:00 committed by GitHub
commit a962578e51
1 changed files with 3 additions and 1 deletions

View File

@ -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)