Skip to content
This repository has been archived by the owner on Aug 30, 2021. It is now read-only.

Commit

Permalink
Merge pull request #972 from mleanos/mocha-global-timeout-grunt
Browse files Browse the repository at this point in the history
Global Mocha timeout
  • Loading branch information
lirantal committed Oct 13, 2015
2 parents 4586c29 + 037878b commit 8a12f76
Show file tree
Hide file tree
Showing 8 changed files with 4 additions and 8 deletions.
3 changes: 2 additions & 1 deletion gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,8 @@ module.exports = function (grunt) {
mochaTest: {
src: testAssets.tests.server,
options: {
reporter: 'spec'
reporter: 'spec',
timeout: 10000
}
},
mocha_istanbul: {
Expand Down
3 changes: 2 additions & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,8 @@ gulp.task('mocha', function (done) {
// Run the tests
gulp.src(testAssets.tests.server)
.pipe(plugins.mocha({
reporter: 'spec'
reporter: 'spec',
timeout: 10000
}))
.on('error', function (err) {
// If an error occurs, save it
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ var user, article;
* Unit tests
*/
describe('Article Model Unit Tests:', function () {
this.timeout(10000);

beforeEach(function (done) {
user = new User({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ var app, agent, credentials, user, article;
* Article routes tests
*/
describe('Article CRUD tests', function () {
this.timeout(10000);

before(function (done) {
// Get application
Expand Down
1 change: 0 additions & 1 deletion modules/chat/tests/server/chat.socket.tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
* Chat socket tests
*/
describe('Chat Socket Tests:', function () {
this.timeout(10000);

// TODO: Add chat socket tests
});
1 change: 0 additions & 1 deletion modules/core/tests/server/core.server.config.tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ var should = require('should'),
seed = require(path.resolve('./config/lib/seed'));

describe('Configuration Tests:', function () {
this.timeout(10000);

describe('Testing default seedDB', function () {
before(function(done) {
Expand Down
1 change: 0 additions & 1 deletion modules/users/tests/server/user.server.model.tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ var user1, user2, user3;
* Unit tests
*/
describe('User Model Unit Tests:', function () {
this.timeout(10000);

before(function () {
user1 = {
Expand Down
1 change: 0 additions & 1 deletion modules/users/tests/server/user.server.routes.tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ var app, agent, credentials, user, _user, admin;
* User routes tests
*/
describe('User CRUD tests', function () {
this.timeout(10000);

before(function (done) {
// Get application
Expand Down

0 comments on commit 8a12f76

Please sign in to comment.