From 73e9be2ff03af18671e163cce5ce3a48b92b1a8b Mon Sep 17 00:00:00 2001 From: Jonatan Nilsson Date: Thu, 10 Mar 2022 13:11:23 +0000 Subject: [PATCH] fix core integration test yet again --- test/core.test.integration.mjs | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/test/core.test.integration.mjs b/test/core.test.integration.mjs index 5206d21..2744a6c 100644 --- a/test/core.test.integration.mjs +++ b/test/core.test.integration.mjs @@ -318,17 +318,15 @@ runners.forEach(function([runnerName, appname]) { let checkListening = await sendRequestToApplication(listening) assert.strictEqual(checkListening.body.version, 'v1') - while (!hasLogLine(/core is running/)) { - await catchupLog(10) + while (!hasLogLine(/is up and running/)) { + await setTimeout(10) if (processor.exitCode !== null) { throw new Error('Process exited with ' + processor.exitCode) } } - - while (!hasLogLine(/is up and running/)) { - await setTimeout(10) - } + await setTimeout(50) + catchupLog() let db = JSON.parse(await fs.readFile(util.getPathFromRoot('./db.json')))