diff --git a/back/tests.js b/back/tests.js index 8f612c220..57e800772 100644 --- a/back/tests.js +++ b/back/tests.js @@ -27,8 +27,6 @@ async function test() { const app = require('vn-loopback/server/server'); app.boot(bootOptions); - await new Promise(resolve => setTimeout(resolve, 15000)); - const Jasmine = require('jasmine'); const jasmine = new Jasmine(); const SpecReporter = require('jasmine-spec-reporter').SpecReporter; @@ -42,7 +40,7 @@ async function test() { jasmine.loadConfig({ spec_dir: '.', spec_files: backSpecs, - helpers: [] + helpers: [], }); jasmine.addReporter(new SpecReporter({ @@ -56,6 +54,7 @@ async function test() { })); jasmine.exitOnCompletion = false; + jasmine.defaultTimeoutInterval = 40000; await jasmine.execute(); if (app) await app.disconnect(); if (container) await container.rm();