mirror of
https://github.com/taobataoma/meanTorrent.git
synced 2026-02-08 15:37:11 +01:00
Merge pull request #956 from mleanos/mocha-test-suite-timeouts
Mocha test timeouts [fixes #955]
This commit is contained in:
@@ -17,6 +17,8 @@ var user, article;
|
||||
* Unit tests
|
||||
*/
|
||||
describe('Article Model Unit Tests:', function () {
|
||||
this.timeout(10000);
|
||||
|
||||
beforeEach(function (done) {
|
||||
user = new User({
|
||||
firstName: 'Full',
|
||||
|
||||
@@ -17,6 +17,8 @@ var app, agent, credentials, user, article;
|
||||
* Article routes tests
|
||||
*/
|
||||
describe('Article CRUD tests', function () {
|
||||
this.timeout(10000);
|
||||
|
||||
before(function (done) {
|
||||
// Get application
|
||||
app = express.init(mongoose);
|
||||
|
||||
@@ -4,5 +4,7 @@
|
||||
* Chat socket tests
|
||||
*/
|
||||
describe('Chat Socket Tests:', function () {
|
||||
this.timeout(10000);
|
||||
|
||||
// TODO: Add chat socket tests
|
||||
});
|
||||
|
||||
@@ -11,6 +11,7 @@ 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) {
|
||||
|
||||
@@ -16,6 +16,8 @@ var user1, user2, user3;
|
||||
* Unit tests
|
||||
*/
|
||||
describe('User Model Unit Tests:', function () {
|
||||
this.timeout(10000);
|
||||
|
||||
before(function () {
|
||||
user1 = {
|
||||
firstName: 'Full',
|
||||
|
||||
@@ -16,6 +16,8 @@ var app, agent, credentials, user, _user, admin;
|
||||
* User routes tests
|
||||
*/
|
||||
describe('User CRUD tests', function () {
|
||||
this.timeout(10000);
|
||||
|
||||
before(function (done) {
|
||||
// Get application
|
||||
app = express.init(mongoose);
|
||||
|
||||
Reference in New Issue
Block a user