From 543cb976f305b00f73a4c25e32046114c8aef5c9 Mon Sep 17 00:00:00 2001 From: Martin Cizek Date: Thu, 17 Sep 2020 07:35:53 +0200 Subject: [PATCH] Add connectTimeout to test --- test/client.test.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/client.test.js b/test/client.test.js index 2bfd228..9694ef0 100644 --- a/test/client.test.js +++ b/test/client.test.js @@ -384,7 +384,8 @@ tap.test('createClient', t => { url: [ `ldap://0.0.0.0:${unusedPortNumber}`, `ldap://0.0.0.1:${unusedPortNumber}` - ] + ], + connectTimeout: 1 }) t.equal(client.servers.length, 2) @@ -394,7 +395,8 @@ tap.test('createClient', t => { t.test('url string is correctly parsed and assigned', async t => { getPort().then(function (unusedPortNumber) { const client = ldap.createClient({ - url: `ldap://0.0.0.0:${unusedPortNumber},0.0.0.1:${unusedPortNumber}` + url: `ldap://0.0.0.0:${unusedPortNumber},0.0.0.1:${unusedPortNumber}`, + connectTimeout: 1 }) t.equal(client.servers.length, 2)