Skip to content

Commit

Permalink
Drop race condition in connect-timeout test (#2360)
Browse files Browse the repository at this point in the history
Signed-off-by: Matteo Collina <hello@matteocollina.com>
  • Loading branch information
mcollina committed Oct 19, 2023
1 parent dea70e2 commit 63afd9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/connect-timeout.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const sleep = require('atomic-sleep')
test('priotorise socket errors over timeouts', (t) => {
t.plan(1)
const connectTimeout = 1000
const client = new Pool('http://foobar.bar:1234', { connectTimeout: 1 })
const client = new Pool('http://foobar.bar:1234', { connectTimeout: 2 })

client.request({ method: 'GET', path: '/foobar' })
.then(() => t.fail())
Expand Down

0 comments on commit 63afd9b

Please sign in to comment.