Skip to content

Commit

Permalink
fixuP
Browse files Browse the repository at this point in the history
  • Loading branch information
ronag committed Apr 14, 2023
1 parent 56539b4 commit 88fdea6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/connect-timeout.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ test('priotorise socket errors over timeouts', (t) => {
t.equal(err.code, 'ENOTFOUND')
})

// block for 1001ms which is enough for the dns lookup to complete and TO to fire
sleep(connectTimeout + 1)
// block for 2s which is enough for the dns lookup to complete and TO to fire
sleep(connectTimeout * 2)
})

// never connect
Expand Down
1 change: 1 addition & 0 deletions test/fetch/fetch-leak.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ test('do not leak', (t) => {
const controller = new AbortController()
fetch(url, { signal: controller.signal })
.then(res => res.arrayBuffer())
.catch(() => {})
.then(attack)
})

Expand Down

0 comments on commit 88fdea6

Please sign in to comment.