Exit on completion
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Joan Sanchez 2022-10-05 13:38:17 +02:00
parent df929c77ce
commit 076fce058c
1 changed files with 3 additions and 4 deletions

View File

@ -41,11 +41,14 @@ async function test() {
}
}));
jasmine.exitOnCompletion = false;
if (isCI) {
const JunitReporter = require('jasmine-reporters');
jasmine.addReporter(new JunitReporter.JUnitXmlReporter());
jasmine.jasmine.DEFAULT_TIMEOUT_INTERVAL = 30000;
jasmine.exitOnCompletion = true;
}
const backSpecs = [
@ -60,10 +63,6 @@ async function test() {
helpers: [],
});
if (!isCI) jasmine.exitOnCompletion = false;
else
jasmine.exitOnCompletion = true;
await jasmine.execute();
if (app) await app.disconnect();
if (container) await container.rm();