From d52f6d4aa2ec5f6159e85f7210b752535f638a5c Mon Sep 17 00:00:00 2001 From: Keegan Date: Mon, 14 Mar 2016 01:55:04 +1100 Subject: [PATCH] Globally increase mocha timeout because Travis struggles sometimes --- test/karma.conf.js | 6 ++++++ test/spec/index.js | 2 -- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/test/karma.conf.js b/test/karma.conf.js index 9311873..ff82618 100644 --- a/test/karma.conf.js +++ b/test/karma.conf.js @@ -12,6 +12,12 @@ module.exports = function(config) { // available frameworks: https://npmjs.org/browse/keyword/karma-adapter frameworks: ['browserify', 'source-map-support', 'mocha'], + client: { + mocha: { + timeout: 10000 // 10 sec because Travis struggles sometimes. + } + }, + browserify: { debug: true, transform: [ diff --git a/test/spec/index.js b/test/spec/index.js index 60c6a76..b7815a7 100644 --- a/test/spec/index.js +++ b/test/spec/index.js @@ -62,8 +62,6 @@ describe('Clay', function() { it('handles the "showConfiguration" event if autoHandleEvents is not false', function() { - this.timeout(10000); // 10 seconds - stubPebble(); var clay = fixture.clay([]);