Skip to content

Commit

Permalink
give sigterm catching MUCH longer on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacs committed Nov 20, 2017
1 parent e9b94d7 commit 79a820f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/spawn.js
Expand Up @@ -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'
})
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 79a820f

Please sign in to comment.