diff --git a/test/integration/connectable/get-connection.js b/test/integration/connectable/get-connection.js index 7eb51ad..a0181a0 100644 --- a/test/integration/connectable/get-connection.js +++ b/test/integration/connectable/get-connection.js @@ -24,6 +24,10 @@ describe('Connectable ::', function() { }); }); + after(function(done) { + manager.pool.end(done); + }); + it('should successfully return a PG Client instance', function(done) { Pack.getConnection({ manager: manager @@ -38,9 +42,7 @@ describe('Connectable ::', function() { // Assert that a PG Client is returned assert(report.connection instanceof pg.Client); - - // Assert that the connection has a release function - assert(report.connection.release); + assert('function' === typeof report.connection.release); return done(); });