Increased timeout

This commit is contained in:
Joan Sanchez 2022-05-13 11:51:45 +02:00
parent 330763a745
commit 65e68cf4dd
1 changed files with 2 additions and 3 deletions

View File

@ -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();