From a751230cd9df9b33aed9b59d39ee090420197207 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20Bajto=C5=A1?= Date: Mon, 8 Aug 2016 15:12:56 +0200 Subject: [PATCH] test: increase timeout to prevent CI failures --- test/remote-connector.test.js | 2 ++ test/replication.rest.test.js | 2 ++ test/replication.test.js | 2 ++ test/role.test.js | 3 ++- 4 files changed, 8 insertions(+), 1 deletion(-) diff --git a/test/remote-connector.test.js b/test/remote-connector.test.js index 5118de64..f2c50e56 100644 --- a/test/remote-connector.test.js +++ b/test/remote-connector.test.js @@ -7,6 +7,8 @@ var loopback = require('../'); var defineModelTestsWithDataSource = require('./util/model-tests'); describe('RemoteConnector', function() { + this.timeout(10000); + var remoteApp, remote; defineModelTestsWithDataSource({ diff --git a/test/replication.rest.test.js b/test/replication.rest.test.js index cac54192..aedd541e 100644 --- a/test/replication.rest.test.js +++ b/test/replication.rest.test.js @@ -11,6 +11,8 @@ var expect = require('chai').expect; var supertest = require('supertest'); describe('Replication over REST', function() { + this.timeout(10000); + var ALICE = { id: 'a', username: 'alice', email: 'a@t.io', password: 'p' }; var PETER = { id: 'p', username: 'peter', email: 'p@t.io', password: 'p' }; var EMERY = { id: 'e', username: 'emery', email: 'e@t.io', password: 'p' }; diff --git a/test/replication.test.js b/test/replication.test.js index 32156932..0ad1827c 100644 --- a/test/replication.test.js +++ b/test/replication.test.js @@ -13,6 +13,8 @@ var expect = require('chai').expect; var debug = require('debug')('test'); describe('Replication / Change APIs', function() { + this.timeout(10000); + var dataSource, SourceModel, TargetModel, useSinceFilter; var tid = 0; // per-test unique id used e.g. to build unique model names diff --git a/test/role.test.js b/test/role.test.js index 98ff89f0..17ba5e08 100644 --- a/test/role.test.js +++ b/test/role.test.js @@ -15,6 +15,8 @@ function checkResult(err, result) { } describe('role model', function() { + this.timeout(10000); + var app, Role, RoleMapping, User, Application, ACL; beforeEach(function() { @@ -419,7 +421,6 @@ describe('role model', function() { var user, app, role; beforeEach(function(done) { - this.timeout(5000); User.create({ username: 'john', email: 'john@gmail.com',