exframe-testing
Advanced tools
Comparing version 3.4.0 to 3.5.0
@@ -54,3 +54,4 @@ #!/usr/bin/env node | ||
const servicePort = serviceConfig.port || Number(config.default.PORT) || 80; | ||
const serviceHealthPath = serviceConfig.healthPath || '/health'; | ||
const serviceHealthPath = serviceConfig.healthPath || '/health/readiness'; | ||
const legacyHealthPath = '/health'; | ||
const dockerComposeExists = fs.existsSync('./docker-compose.yml'); | ||
@@ -83,3 +84,6 @@ let defaultArgs = argv._; | ||
let logMessage = -1; | ||
const attempt = () => axios.get(`http://localhost:${servicePort}${serviceHealthPath}`) | ||
const attempt = () => Promise.any([ | ||
axios.get(`http://localhost:${servicePort}${serviceHealthPath}`), | ||
axios.get(`http://localhost:${servicePort}${legacyHealthPath}`) | ||
]) | ||
.then( | ||
@@ -86,0 +90,0 @@ () => log.info('service running'), |
{ | ||
"name": "exframe-testing", | ||
"version": "3.4.0", | ||
"version": "3.5.0", | ||
"bin": { | ||
@@ -52,3 +52,3 @@ "exframe-testing": "cli.js" | ||
}, | ||
"gitHead": "846806709f00dedc764c794b3ee05ca3c7297244" | ||
"gitHead": "6c09763669b90802745d12200803ac186a6dc5ae" | ||
} |
33596
539