Skip to content

Commit

Permalink
Added basic drain test
Browse files Browse the repository at this point in the history
  • Loading branch information
NatalieWolfe committed Jul 10, 2015
1 parent a4c8902 commit 3e22ccd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/unit/pool.js
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ describe('PromisePool', function(){
return pool.acquire(function(conn){
return Promise.resolve();
}).then(function(){
return pool.destroyAllNow();
return pool.drain();
}).then(function(){
created.should.eql(destroyed);
});
Expand Down

0 comments on commit 3e22ccd

Please sign in to comment.