exframe-testing
Advanced tools
Comparing version 1.1.3 to 1.1.4
@@ -110,10 +110,7 @@ #!/usr/bin/env node | ||
const attempt = () => | ||
axios.get(`http://mongo-seed`) | ||
axios.get(`http://mongo-seed`, { timeout: 1000 }) | ||
.then( | ||
() => log.info('seed completed'), | ||
(ex) => { | ||
if (ex.code !== 'ECONNREFUSED') { | ||
log.error('Error waiting for seeding to finish', { errorDetails: ex}); | ||
throw ex; | ||
} else if (timedOut) { | ||
() => { | ||
if (timedOut) { | ||
throw new Error('Timeout waiting for seeding to finish'); | ||
@@ -120,0 +117,0 @@ } else if ((++logMessage % 10) === 0) { |
{ | ||
"name": "exframe-testing", | ||
"version": "1.1.3", | ||
"version": "1.1.4", | ||
"bin": { | ||
@@ -5,0 +5,0 @@ "exframe-testing": "./cli.js" |
16260
237