Skip to content

Commit

Permalink
Fix windows tests
Browse files Browse the repository at this point in the history
Signed-off-by: Matteo Collina <[email protected]>
  • Loading branch information
mcollina committed Oct 14, 2024
1 parent b929456 commit ad18eb3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/run.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,7 @@ test('tracker will emit reqError with error message on timeout', (t) => {
})

test('tracker will emit reqError with error message on error', (t) => {
t.plan(2)
t.plan(1)

const server = helper.startSocketDestroyingServer()

Expand All @@ -535,8 +535,8 @@ test('tracker will emit reqError with error message on error', (t) => {
})

tracker.once('reqError', (err) => {
console.log(err)
t.type(err, Error, 'reqError should pass an Error to listener')
t.ok(err.message, 'err.message should have a value')
tracker.stop()
})
})
Expand Down

0 comments on commit ad18eb3

Please sign in to comment.