Add connectTimeout to test
This commit is contained in:
parent
f9ae5c12d8
commit
543cb976f3
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue