From f08fb2e68aa491f92e5e68970434a89a06608eb2 Mon Sep 17 00:00:00 2001 From: Matteo Collina Date: Thu, 19 Oct 2023 12:33:49 +0200 Subject: [PATCH] Drop race condition in connect-timeout test Signed-off-by: Matteo Collina --- test/connect-timeout.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/connect-timeout.js b/test/connect-timeout.js index c904a7335a2..a736a540170 100644 --- a/test/connect-timeout.js +++ b/test/connect-timeout.js @@ -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())