Skip to content

Commit

Permalink
Merge pull request #2800 from PieterGit/travis_improve
Browse files Browse the repository at this point in the history
decrease timeouts to detect regressions faster in future
  • Loading branch information
sulkaharo authored Oct 25, 2017
2 parents ca7972a + 68536d9 commit c6af0aa
Show file tree
Hide file tree
Showing 7 changed files with 47 additions and 23 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ all: test

coverage:
NODE_ENV=test ${MONGO_SETTINGS} \
${ISTANBUL} cover ${MOCHA} -- --timeout 30000 -R tap ${TESTS}
${ISTANBUL} cover ${MOCHA} -- --timeout 15000 -R tap ${TESTS}

report:
test -f ${ANALYZED} && \
Expand All @@ -45,7 +45,7 @@ test:

travis:
NODE_ENV=test ${MONGO_SETTINGS} \
${ISTANBUL} cover ${MOCHA} --report lcovonly -- --timeout 50000 -R tap ${TESTS}
${ISTANBUL} cover ${MOCHA} --report lcovonly -- --timeout 5000 -R tap ${TESTS}

docker_release:
# Get the version from the package.json file
Expand Down
51 changes: 37 additions & 14 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tests/admintools.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ var someData = {

describe('admintools', function ( ) {
var self = this;
this.timeout(30000);
this.timeout(30000); // TODO: see why this test takes longer on Travis to complete
before(function (done) {
benv.setup(function() {

Expand Down
2 changes: 2 additions & 0 deletions tests/careportal.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ var nowData = {
};

describe('client', function ( ) {
this.timeout(30000); // TODO: see why this test takes longer on Travis to complete

var self = this;

var headless = require('./fixtures/headless')(benv, this);
Expand Down
7 changes: 2 additions & 5 deletions tests/hashauth.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ var read = require('fs').readFileSync;
var serverSettings = require('./fixtures/default-server-settings');

describe('hashauth', function ( ) {
this.timeout(40000); // TODO: see why this test takes longer on Travis to complete

var self = this;
var headless = require('./fixtures/headless')(benv, this);

Expand Down Expand Up @@ -63,7 +65,6 @@ describe('hashauth', function ( ) {
*/

it ('should make module unauthorized', function () {
this.timeout(50000);
var client = require('../lib/client');
var hashauth = require('../lib/hashauth');

Expand All @@ -82,7 +83,6 @@ describe('hashauth', function ( ) {
});

it ('should make module authorized', function () {
this.timeout(50000);
var client = require('../lib/client');
var hashauth = require('../lib/hashauth');

Expand All @@ -99,9 +99,6 @@ describe('hashauth', function ( ) {
});

it ('should store hash and the remove authentication', function () {

this.timeout(50000);

var client = require('../lib/client');
var hashauth = require('../lib/hashauth');
var localStorage = require('./fixtures/localstorage');
Expand Down
2 changes: 2 additions & 0 deletions tests/pluginbase.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ require('should');
var benv = require('benv');

describe('pluginbase', function ( ) {
this.timeout(40000); // TODO: see why this test takes longer on Travis to complete

var headless = require('./fixtures/headless')(benv, this);

before(function (done) {
Expand Down
2 changes: 1 addition & 1 deletion tests/profileeditor.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ var someData = {


describe('Profile editor', function ( ) {
this.timeout(30000);
this.timeout(40000); //TODO: see why this test takes longer on Travis to complete
var headless = require('./fixtures/headless')(benv, this);

before(function (done) {
Expand Down

0 comments on commit c6af0aa

Please sign in to comment.