[Pkg-javascript-commits] [node-tap] 109/186: give sigterm catching MUCH longer on CI

Bastien Roucariès rouca at moszumanska.debian.org
Fri Dec 1 16:40:50 UTC 2017


This is an automated email from the git hooks/post-receive script.

rouca pushed a commit to branch master
in repository node-tap.

commit 79a820f4f5e743e5a1e32b2a5952946113781f49
Author: isaacs <i at izs.me>
Date:   Mon Nov 20 13:41:41 2017 -0800

    give sigterm catching MUCH longer on CI
---
 test/spawn.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/test/spawn.js b/test/spawn.js
index a2c033b..ab1e581 100644
--- a/test/spawn.js
+++ b/test/spawn.js
@@ -35,7 +35,7 @@ const main = () => {
     const s = new Spawn({
       command: node,
       args: [ file, 'catch-term' ],
-      timeout: 500,
+      timeout: process.env.CI ? 2000 : 500,
       buffered: true,
       name: 'killa'
     })
@@ -190,7 +190,7 @@ switch (process.argv[2]) {
   case 'catch-term':
     process.on('SIGTERM', _ => console.log('SIGTERM'))
   case 'timeout':
-    setTimeout(_ => _, 5000)
+    setTimeout(_ => _, process.env.CI ? 50000 : 5000)
     break
 
   default:

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-tap.git



More information about the Pkg-javascript-commits mailing list