refs #6321 test: debug use TIMEOUT
gitea/salix/pipeline/pr-dev This commit looks good Details

This commit is contained in:
Javier Segarra 2024-04-01 16:12:52 +02:00
parent 601f5db080
commit 5d24844256
2 changed files with 3 additions and 3 deletions

View File

@ -18,7 +18,7 @@ const opts = getopts(process.argv.slice(2), {
let server;
const PARALLEL = false;
const SETUP_TIMEOUT = 15 * 60 * 1000;
const SPEC_TIMEOUT = 30 * 1000;
const SPEC_TIMEOUT = 30 * 11000;
process.on('exit', teardown);
process.on('uncaughtException', onError);
@ -111,7 +111,7 @@ async function test() {
const JunitReporter = require('jasmine-reporters');
runner.addReporter(new JunitReporter.JUnitXmlReporter());
}
if (opts.ci)
if (opts.ci || opts.debug)
runner.jasmine.DEFAULT_TIMEOUT_INTERVAL = SPEC_TIMEOUT;
// runner.loadConfigFile('back/jasmine.json');

View File

@ -106,7 +106,7 @@
"yaml-loader": "^0.5.0"
},
"scripts": {
"test:back": "nodemon -q back/tests.js --config back/nodemonConfig.json",
"test:back": "nodemon -q back/tests.js --config back/nodemonConfig.json --debug",
"test:e2e": "node e2e/tests.js",
"test:front": "jest --watch",
"back": "nodemon --inspect -w modules ./node_modules/gulp/bin/gulp.js back",