Skip to content

Commit

Permalink
core spawn test even less flaky
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacs committed Sep 12, 2023
1 parent a7a12d2 commit 2ece1da
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/core/test/spawn.ts
Expand Up @@ -341,19 +341,19 @@ not ok 1 - test unfinished
`
console.log('TAP version 14')
console.log('# ' + process.env.TAP_BAIL)
console.log('# timeout=1234')
console.log('# timeout=12345')
setTimeout(() => {
console.log('1..1')
console.log('ok 1 - this is fine')
}, 300)
})
`,
],
})
s.on('process', () => {
const { setTimeout } = s
s.setTimeout = (n: number) => {
setTimeout.call(s, n)
t.equal(n, 1234)
t.equal(n, 12345)
t.end()
s.setTimeout = setTimeout
}
Expand Down

0 comments on commit 2ece1da

Please sign in to comment.