Fix some test, update version
Some checks failed
continuous-integration/appveyor/branch AppVeyor build failed
Some checks failed
continuous-integration/appveyor/branch AppVeyor build failed
This commit is contained in:
parent
746e0c3f46
commit
4d15623a23
2 changed files with 5 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "service-core",
|
"name": "service-core",
|
||||||
"version": "3.0.0-beta.3",
|
"version": "3.0.0-beta.4",
|
||||||
"description": "Core boiler plate code to install node server as windows service",
|
"description": "Core boiler plate code to install node server as windows service",
|
||||||
"main": "index.mjs",
|
"main": "index.mjs",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|
|
@ -189,6 +189,7 @@ runners.forEach(function([runnerName, appname]) {
|
||||||
}
|
}
|
||||||
|
|
||||||
integrationLog.on('newlog', function(record) {
|
integrationLog.on('newlog', function(record) {
|
||||||
|
allLogs.push(JSON.stringify(record))
|
||||||
if (turnDebuggingOn) {
|
if (turnDebuggingOn) {
|
||||||
prettyPrintMessage(JSON.stringify(record))
|
prettyPrintMessage(JSON.stringify(record))
|
||||||
}
|
}
|
||||||
|
@ -238,13 +239,14 @@ runners.forEach(function([runnerName, appname]) {
|
||||||
|
|
||||||
async function sendRequestToApplication(listening) {
|
async function sendRequestToApplication(listening) {
|
||||||
let lastErr = null
|
let lastErr = null
|
||||||
for (let i = 0; i < 3; i++) {
|
for (let i = 0; i < 4; i++) {
|
||||||
try {
|
try {
|
||||||
let checkListening = await request({}, `http://localhost:${listening.port}/`)
|
let checkListening = await request({}, `http://localhost:${listening.port}/`)
|
||||||
return checkListening
|
return checkListening
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
lastErr = err
|
lastErr = err
|
||||||
await setTimeout(150)
|
integrationLog.info(`Request http://localhost:${listening.port}/ failed with ${err.message} trying again in 250ms`)
|
||||||
|
await setTimeout(250)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
log('-- core.test.integration.mjs crash here --')
|
log('-- core.test.integration.mjs crash here --')
|
||||||
|
|
Loading…
Reference in a new issue