Skip to content

Commit

Permalink
make tests pass in node v10
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacs committed May 8, 2018
1 parent f9d64f6 commit fae29d0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions test/mocha.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@ mocha.describe('globals', () => {
})

assert.throws(_ => mocha.after(),
'cannot call "after" outside of describe()')
new Error('cannot call "after" outside of describe()'))
assert.throws(_ => mocha.before(),
'cannot call "before" outside of describe()')
new Error('cannot call "before" outside of describe()'))

let calledAfter = false
let calledBefore = false
Expand Down
2 changes: 1 addition & 1 deletion test/spawn.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const main = () => {
const s = new Spawn({
command: node,
args: [ file, 'catch-term' ],
timeout: process.env.CI ? 2000 : 500,
timeout: process.env.CI ? 5000 : 500,
buffered: true,
name: 'killa'
})
Expand Down

0 comments on commit fae29d0

Please sign in to comment.