File tree Expand file tree Collapse file tree 4 files changed +11
-11
lines changed Expand file tree Collapse file tree 4 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -139,7 +139,7 @@ describe('Unit Tests ::', function() {
139
139
// it's connections properly.
140
140
it ( 'should release its connection when completed' , function ( done ) {
141
141
var manager = Adapter . datastores . test . manager ;
142
- var preConnectionsAvailable = manager . pool . pool . availableObjectsCount ( ) ;
142
+ var preConnectionsAvailable = manager . pool . idleCount ;
143
143
144
144
var query = {
145
145
using : 'test_create' ,
@@ -154,7 +154,7 @@ describe('Unit Tests ::', function() {
154
154
return done ( err ) ;
155
155
}
156
156
157
- var postConnectionsAvailable = manager . pool . pool . availableObjectsCount ( ) ;
157
+ var postConnectionsAvailable = manager . pool . idleCount ;
158
158
assert . equal ( preConnectionsAvailable , postConnectionsAvailable ) ;
159
159
160
160
return done ( ) ;
Original file line number Diff line number Diff line change @@ -49,9 +49,9 @@ describe('Unit Tests ::', function() {
49
49
50
50
// Look into the bowels of the PG Driver and ensure the Create function handles
51
51
// it's connections properly.
52
- it ( 'should release it\'s connection when completed' , function ( done ) {
52
+ it ( 'should release its connection when completed' , function ( done ) {
53
53
var manager = Adapter . datastores . test . manager ;
54
- var preConnectionsAvailable = manager . pool . pool . availableObjectsCount ( ) ;
54
+ var preConnectionsAvailable = manager . pool . idleCount ;
55
55
56
56
var query = {
57
57
using : 'test_destroy' ,
@@ -63,7 +63,7 @@ describe('Unit Tests ::', function() {
63
63
return done ( err ) ;
64
64
}
65
65
66
- var postConnectionsAvailable = manager . pool . pool . availableObjectsCount ( ) ;
66
+ var postConnectionsAvailable = manager . pool . idleCount ;
67
67
assert . equal ( preConnectionsAvailable , postConnectionsAvailable ) ;
68
68
69
69
return done ( ) ;
Original file line number Diff line number Diff line change @@ -114,9 +114,9 @@ describe('Unit Tests ::', function() {
114
114
115
115
// Look into the bowels of the PG Driver and ensure the Create function handles
116
116
// it's connections properly.
117
- it ( 'should release it\'s connection when completed' , function ( done ) {
117
+ it ( 'should release its connection when completed' , function ( done ) {
118
118
var manager = Adapter . datastores . test . manager ;
119
- var preConnectionsAvailable = manager . pool . pool . availableObjectsCount ( ) ;
119
+ var preConnectionsAvailable = manager . pool . idleCount ;
120
120
121
121
var query = {
122
122
using : 'test_find' ,
@@ -128,7 +128,7 @@ describe('Unit Tests ::', function() {
128
128
return done ( err ) ;
129
129
}
130
130
131
- var postConnectionsAvailable = manager . pool . pool . availableObjectsCount ( ) ;
131
+ var postConnectionsAvailable = manager . pool . idleCount ;
132
132
assert . equal ( preConnectionsAvailable , postConnectionsAvailable ) ;
133
133
134
134
return done ( ) ;
Original file line number Diff line number Diff line change @@ -83,9 +83,9 @@ describe('Unit Tests ::', function() {
83
83
84
84
// Look into the bowels of the PG Driver and ensure the Create function handles
85
85
// it's connections properly.
86
- it ( 'should release it\'s connection when completed' , function ( done ) {
86
+ it ( 'should release its connection when completed' , function ( done ) {
87
87
var manager = Adapter . datastores . test . manager ;
88
- var preConnectionsAvailable = manager . pool . pool . availableObjectsCount ( ) ;
88
+ var preConnectionsAvailable = manager . pool . idleCount ;
89
89
90
90
var query = {
91
91
using : 'test_update' ,
@@ -98,7 +98,7 @@ describe('Unit Tests ::', function() {
98
98
return done ( err ) ;
99
99
}
100
100
101
- var postConnectionsAvailable = manager . pool . pool . availableObjectsCount ( ) ;
101
+ var postConnectionsAvailable = manager . pool . idleCount ;
102
102
assert . equal ( preConnectionsAvailable , postConnectionsAvailable ) ;
103
103
104
104
return done ( ) ;
You can’t perform that action at this time.
0 commit comments