node-docker-api
Advanced tools
Comparing version 1.1.15 to 1.1.16
{ | ||
"name": "node-docker-api", | ||
"version": "1.1.15", | ||
"version": "1.1.16", | ||
"description": "Docker Remote API driver for node", | ||
"main": "./lib/docker", | ||
"typings": "./lib/docker", | ||
"scripts": { | ||
@@ -7,0 +8,0 @@ "watch-test": "nodemon --watch build --watch test --exec 'npm run test'", |
@@ -66,3 +66,14 @@ import test from 'ava' | ||
test.after('prune', async t => { | ||
t.truthy(await docker.image.prune()) | ||
async function tryPrune(attempt = 5) { | ||
if (attempt > 0) { | ||
try { | ||
await docker.image.prune() | ||
} catch (e) { | ||
tryPrune(attempt - 1) | ||
} | ||
} else { | ||
t.truthy(await docker.image.prune()) | ||
} | ||
} | ||
await tryPrune() | ||
}) |
@@ -38,3 +38,14 @@ import test from 'ava' | ||
test.after('prune', async t => { | ||
t.truthy(await docker.network.prune()) | ||
async function tryPrune(attempt = 5) { | ||
if (attempt > 0) { | ||
try { | ||
await docker.network.prune() | ||
} catch (e) { | ||
tryPrune(attempt - 1) | ||
} | ||
} else { | ||
t.truthy(await docker.network.prune()) | ||
} | ||
} | ||
await tryPrune() | ||
}) |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1402938
8788