Skip to content

Commit

Permalink
CI fix
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmarkclements committed Jun 15, 2018
1 parent a605b56 commit fa90611
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/events.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ test('terminates when uncaughtException is fired without onTerminate registered'
cb()
}))
const code = await once(child, 'exit')
is(code, 1)
is(code | 0, 1)
is(/"msg":"h"/.test(output), true)
})

Expand All @@ -64,7 +64,7 @@ test('terminates on SIGHUP when no other handlers registered', async ({is}) => {
child.stderr.pipe(process.stdout)
setTimeout(() => child.kill('SIGHUP'), 2000)
const code = await once(child, 'exit')
is(code, 0)
is(code | 0, 0)
is(/"msg":"h"/.test(output), true)
})

Expand All @@ -78,7 +78,7 @@ test('lets app terminate when SIGHUP received with multiple handlers', async ({i
}))
setTimeout(() => child.kill('SIGHUP'), 2000)
const code = await once(child, 'exit')
is(code, 0)
is(code | 0, 0)
is(/"msg":"h"/.test(output), true)
is(/app sighup/.test(output), true)
})
Expand All @@ -95,6 +95,6 @@ test('destination', async ({is}) => {
child.stderr.pipe(process.stdout)

const code = await once(child, 'exit')
is(code, 0)
is(code | 0, 0)
is(/"msg":"h"/.test(output), true)
})

0 comments on commit fa90611

Please sign in to comment.