@@ -189,10 +189,10 @@ describe('get', function () {
189189
190190 it ( 'should return an error if there is an error acquiring a connection' , function ( done ) {
191191 var pool = redisCache . store . _pool ;
192- sinon . stub ( pool , 'acquire ' ) . yieldsAsync ( 'Something unexpected' ) ;
192+ sinon . stub ( pool , 'acquireDb ' ) . yieldsAsync ( 'Something unexpected' ) ;
193193 sinon . stub ( pool , 'release' ) ;
194194 redisCache . get ( 'foo' , function ( err ) {
195- pool . acquire . restore ( ) ;
195+ pool . acquireDb . restore ( ) ;
196196 pool . release . restore ( ) ;
197197 assert . notEqual ( err , null ) ;
198198 done ( ) ;
@@ -219,11 +219,11 @@ describe('del', function () {
219219
220220 it ( 'should return an error if there is an error acquiring a connection' , function ( done ) {
221221 var pool = redisCache . store . _pool ;
222- sinon . stub ( pool , 'acquire ' ) . yieldsAsync ( 'Something unexpected' ) ;
222+ sinon . stub ( pool , 'acquireDb ' ) . yieldsAsync ( 'Something unexpected' ) ;
223223 sinon . stub ( pool , 'release' ) ;
224224 redisCache . set ( 'foo' , 'bar' , function ( ) {
225225 redisCache . del ( 'foo' , function ( err ) {
226- pool . acquire . restore ( ) ;
226+ pool . acquireDb . restore ( ) ;
227227 pool . release . restore ( ) ;
228228 assert . notEqual ( err , null ) ;
229229 done ( ) ;
@@ -247,10 +247,10 @@ describe('reset', function () {
247247
248248 it ( 'should return an error if there is an error acquiring a connection' , function ( done ) {
249249 var pool = redisCache . store . _pool ;
250- sinon . stub ( pool , 'acquire ' ) . yieldsAsync ( 'Something unexpected' ) ;
250+ sinon . stub ( pool , 'acquireDb ' ) . yieldsAsync ( 'Something unexpected' ) ;
251251 sinon . stub ( pool , 'release' ) ;
252252 redisCache . reset ( function ( err ) {
253- pool . acquire . restore ( ) ;
253+ pool . acquireDb . restore ( ) ;
254254 pool . release . restore ( ) ;
255255 assert . notEqual ( err , null ) ;
256256 done ( ) ;
@@ -279,11 +279,11 @@ describe('ttl', function () {
279279
280280 it ( 'should return an error if there is an error acquiring a connection' , function ( done ) {
281281 var pool = redisCache . store . _pool ;
282- sinon . stub ( pool , 'acquire ' ) . yieldsAsync ( 'Something unexpected' ) ;
282+ sinon . stub ( pool , 'acquireDb ' ) . yieldsAsync ( 'Something unexpected' ) ;
283283 sinon . stub ( pool , 'release' ) ;
284284 redisCache . set ( 'foo' , 'bar' , function ( ) {
285285 redisCache . ttl ( 'foo' , function ( err ) {
286- pool . acquire . restore ( ) ;
286+ pool . acquireDb . restore ( ) ;
287287 pool . release . restore ( ) ;
288288 assert . notEqual ( err , null ) ;
289289 done ( ) ;
@@ -317,11 +317,11 @@ describe('keys', function () {
317317
318318 it ( 'should return an error if there is an error acquiring a connection' , function ( done ) {
319319 var pool = redisCache . store . _pool ;
320- sinon . stub ( pool , 'acquire ' ) . yieldsAsync ( 'Something unexpected' ) ;
320+ sinon . stub ( pool , 'acquireDb ' ) . yieldsAsync ( 'Something unexpected' ) ;
321321 sinon . stub ( pool , 'release' ) ;
322322 redisCache . set ( 'foo' , 'bar' , function ( ) {
323323 redisCache . keys ( 'f*' , function ( err ) {
324- pool . acquire . restore ( ) ;
324+ pool . acquireDb . restore ( ) ;
325325 pool . release . restore ( ) ;
326326 assert . notEqual ( err , null ) ;
327327 done ( ) ;
@@ -368,10 +368,10 @@ describe('getClient', function () {
368368
369369 it ( 'should return an error if there is an error acquiring a connection' , function ( done ) {
370370 var pool = redisCache . store . _pool ;
371- sinon . stub ( pool , 'acquire ' ) . yieldsAsync ( 'Something unexpected' ) ;
371+ sinon . stub ( pool , 'acquireDb ' ) . yieldsAsync ( 'Something unexpected' ) ;
372372 sinon . stub ( pool , 'release' ) ;
373373 redisCache . store . getClient ( function ( err ) {
374- pool . acquire . restore ( ) ;
374+ pool . acquireDb . restore ( ) ;
375375 pool . release . restore ( ) ;
376376 assert . notEqual ( err , null ) ;
377377 done ( ) ;
0 commit comments