File tree 1 file changed +7
-4
lines changed
1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -66,10 +66,13 @@ describe('#integration driver', () => {
66
66
Promise . all ( [ result1 , result2 ] ) . then ( results => {
67
67
driver . close ( )
68
68
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 )
73
76
done ( )
74
77
} )
75
78
} )
You can’t perform that action at this time.
0 commit comments