Updated test

This commit is contained in:
delvedor
2018-10-26 19:06:04 +02:00
parent 51e6c76511
commit 961b8224ef
4 changed files with 127 additions and 3 deletions

View File

@ -135,7 +135,7 @@ test('API', t => {
var connection = pool.addConnection(href)
pool.markDead(connection)
pool.resurrect(Date.now() + 1000 * 60 * 3, (isAlive, connection) => {
t.ok(isAlive === null)
t.true(isAlive)
connection = pool.connections.get(connection.id)
t.strictEqual(connection.deadCount, 1)
t.true(connection.resurrectTimeout > 0)