Skip to content

Commit

Permalink
test: windows
Browse files Browse the repository at this point in the history
  • Loading branch information
metcoder95 committed Sep 13, 2024
1 parent 454c1f0 commit c721865
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions test/interceptors/dns.js
Original file line number Diff line number Diff line change
Expand Up @@ -334,10 +334,19 @@ test('Should throw when on dual-stack disabled (6)', async t => {

const promise = client.request({
...requestOptions,
origin: 'http://localhost'
})

await t.rejects(promise, 'ECONNREFUSED')
origin: 'http://localhost',
headersTimeout: 100
})

// TODO: remove
await t.rejects(
promise.catch(err => {
console.log(err)
throw err
}),
'ECONNREFUSED'
)
// await t.rejects(promise, 'ECONNREFUSED')

await t.complete
})
Expand Down

0 comments on commit c721865

Please sign in to comment.