exframe-testing
Advanced tools
Comparing version
@@ -18,7 +18,7 @@ 'use strict'; | ||
if (config[paramA] && config[paramA].url) | ||
({ url, port = 80 } = config[paramA]) | ||
({ url, port } = config[paramA]) | ||
// else it is probably url string | ||
else { | ||
url = paramA; | ||
port = paramB || 80 | ||
port = paramB | ||
} | ||
@@ -35,6 +35,12 @@ | ||
incomeOpts = incomeOpts || {}; | ||
for (const k of Object.keys(incomeOpts)) | ||
if (incomeOpts[k] === undefined) | ||
delete incomeOpts[k]; | ||
const options = { | ||
timeoutMs: 10000, | ||
waitingInterval: 250, | ||
...(incomeOpts || {}).filter(v => v !== undefined) | ||
...incomeOpts | ||
}; | ||
@@ -51,3 +57,3 @@ | ||
try { | ||
await axios({ method: 'GET', url: `${url}:${port}/health` }) | ||
await axios({ method: 'GET', url: `${url}:${port || 80}/health` }) | ||
isRunning = true; | ||
@@ -54,0 +60,0 @@ } |
{ | ||
"name": "exframe-testing", | ||
"version": "1.2.1", | ||
"version": "1.2.2", | ||
"bin": { | ||
@@ -5,0 +5,0 @@ "exframe-testing": "./cli.js" |
20326
0.5%365
1.11%