node-docker-api
Advanced tools
Comparing version
{ | ||
"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
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
1402938
0.04%8788
0.25%