Skip to content

Commit

Permalink
fix mocha timeout in debug mode
Browse files Browse the repository at this point in the history
  • Loading branch information
[email protected] authored and [email protected] committed Mar 29, 2018
1 parent 2372e13 commit 7a08235
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,10 +170,8 @@ gulp.task('build', ['client-scripts', 'server-scripts', 'templates', 'lint']);
gulp.task('test-server', ['build'], () => {
return gulp.src('./test/server/*-test.js', { read: false })
.pipe(mocha({
ui: 'bdd',
reporter: 'spec',
// NOTE: Disable timeouts in debug mode.
timeout: typeof v8debug === 'undefined' ? 2000 : Infinity,
timeout: typeof v8debug !== 'undefined' || !!process.debugPort ? Infinity : 2000,
fullTrace: true
}));
});
Expand Down

0 comments on commit 7a08235

Please sign in to comment.