Skip to content
This repository was archived by the owner on May 14, 2024. It is now read-only.

Commit 543cb97

Browse files
author
Martin Cizek
committed
Add connectTimeout to test
1 parent f9ae5c1 commit 543cb97

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/client.test.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,8 @@ tap.test('createClient', t => {
384384
url: [
385385
`ldap://0.0.0.0:${unusedPortNumber}`,
386386
`ldap://0.0.0.1:${unusedPortNumber}`
387-
]
387+
],
388+
connectTimeout: 1
388389
})
389390

390391
t.equal(client.servers.length, 2)
@@ -394,7 +395,8 @@ tap.test('createClient', t => {
394395
t.test('url string is correctly parsed and assigned', async t => {
395396
getPort().then(function (unusedPortNumber) {
396397
const client = ldap.createClient({
397-
url: `ldap://0.0.0.0:${unusedPortNumber},0.0.0.1:${unusedPortNumber}`
398+
url: `ldap://0.0.0.0:${unusedPortNumber},0.0.0.1:${unusedPortNumber}`,
399+
connectTimeout: 1
398400
})
399401

400402
t.equal(client.servers.length, 2)

0 commit comments

Comments
 (0)