diff options
author | Michał Gołębiowski-Owczarek <m.goleb@gmail.com> | 2017-09-20 15:36:40 +0200 |
---|---|---|
committer | Michał Gołębiowski-Owczarek <m.goleb@gmail.com> | 2017-09-25 19:27:50 +0200 |
commit | 81be78e380709a7dd4e5241131574c653d07b705 (patch) | |
tree | d12d114fa40adab219080a417894103d57b245ed /build | |
parent | 781647b1820206e95e5c32be2dffb20e9096b1e4 (diff) | |
download | jquery-81be78e380709a7dd4e5241131574c653d07b705.tar.gz jquery-81be78e380709a7dd4e5241131574c653d07b705.zip |
Build: increase timeout in Promises/A+ tests 10 times
The promises-aplus-tests sets up a default 200 ms Mocha timeout. This makes
our tests randomly fail on Jenkins. 2 seconds will be safer.
Closes gh-3791
Diffstat (limited to 'build')
-rw-r--r-- | build/tasks/promises_aplus_tests.js | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/build/tasks/promises_aplus_tests.js b/build/tasks/promises_aplus_tests.js index c634da5f7..5bd20ecdc 100644 --- a/build/tasks/promises_aplus_tests.js +++ b/build/tasks/promises_aplus_tests.js @@ -2,7 +2,8 @@ module.exports = function( grunt ) { "use strict"; - var spawnTest = require( "./lib/spawn_test.js" ); + var timeout = 2000, + spawnTest = require( "./lib/spawn_test.js" ); grunt.registerTask( "promises_aplus_tests", [ "promises_aplus_tests:deferred", "promises_aplus_tests:when" ] ); @@ -10,14 +11,16 @@ module.exports = function( grunt ) { grunt.registerTask( "promises_aplus_tests:deferred", function() { spawnTest( this.async(), __dirname + "/../../node_modules/.bin/promises-aplus-tests" + - " test/promises_aplus_adapters/deferred.js" + " test/promises_aplus_adapters/deferred.js" + + " --timeout " + timeout ); } ); grunt.registerTask( "promises_aplus_tests:when", function() { spawnTest( this.async(), __dirname + "/../../node_modules/.bin/promises-aplus-tests" + - " test/promises_aplus_adapters/when.js" + " test/promises_aplus_adapters/when.js" + + " --timeout " + timeout ); } ); }; |