From 8a843b37bd9067b6be1dfa090d557b59a0111bcf Mon Sep 17 00:00:00 2001 From: jgallego Date: Thu, 11 May 2023 13:54:42 +0200 Subject: [PATCH] refs #5160 Back test timeout workaround --- back/tests.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/back/tests.js b/back/tests.js index a377011d3..ef5a7bca8 100644 --- a/back/tests.js +++ b/back/tests.js @@ -34,6 +34,8 @@ async function test() { app.boot(bootOptions, err => err ? reject(err) : resolve()); }); + // FIXME: Workaround to wait for loopback to be ready + await app.models.Application.status(); const Jasmine = require('jasmine'); const jasmine = new Jasmine(); @@ -53,7 +55,7 @@ async function test() { const JunitReporter = require('jasmine-reporters'); jasmine.addReporter(new JunitReporter.JUnitXmlReporter()); - jasmine.jasmine.DEFAULT_TIMEOUT_INTERVAL = 90000; + jasmine.jasmine.DEFAULT_TIMEOUT_INTERVAL = 5000; jasmine.exitOnCompletion = true; }