Skip to content

Commit 732d86f

Browse files
author
Zhen Li
committed
Modify the test for new 4.0 impl
1 parent b915b8a commit 732d86f

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

test/driver.test.js

+7-4
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,13 @@ describe('#integration driver', () => {
6666
Promise.all([result1, result2]).then(results => {
6767
driver.close()
6868
beginTxWithoutCommit(driver).catch(() => {
69-
var serverKey = Object.keys(driver._pool._activeResourceCounts)[0]
70-
expect(driver._pool._activeResourceCounts[serverKey]).toEqual(2)
71-
expect(driver._pool._pools[serverKey].length).toEqual(0)
72-
expect(Object.keys(driver._openConnections).length).toEqual(2)
69+
var pool = driver._connectionProvider._connectionPool
70+
var serverKey = Object.keys(pool._activeResourceCounts)[0]
71+
expect(pool._activeResourceCounts[serverKey]).toEqual(2)
72+
expect(serverKey in pool._pools).toBeFalsy()
73+
expect(
74+
Object.keys(driver._connectionProvider._openConnections).length
75+
).toEqual(2)
7376
done()
7477
})
7578
})

0 commit comments

Comments
 (0)