File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff 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 } )
You can’t perform that action at this time.
0 commit comments