Skip to content

Commit a962578

Browse files
authored
Merge pull request #1659 from docker/moby33735
Make sure data is written in prune test so space can be reclaimed
2 parents bb82bcf + 9b9fb0a commit a962578

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/integration/api_container_test.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1139,7 +1139,9 @@ def test_pause_unpause(self):
11391139
class PruneTest(BaseAPIIntegrationTest):
11401140
@requires_api_version('1.25')
11411141
def test_prune_containers(self):
1142-
container1 = self.client.create_container(BUSYBOX, ['echo', 'hello'])
1142+
container1 = self.client.create_container(
1143+
BUSYBOX, ['sh', '-c', 'echo hello > /data.txt']
1144+
)
11431145
container2 = self.client.create_container(BUSYBOX, ['sleep', '9999'])
11441146
self.client.start(container1)
11451147
self.client.start(container2)

0 commit comments

Comments
 (0)