From 435d902e45bf3146fa13d4662eb7a230267dcff4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Garc=C3=ADa=20Aubert?= Date: Mon, 31 Jul 2017 18:10:14 +0200 Subject: [PATCH] Expose function to clean all database connections in the pool --- test/support/test_helper.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/support/test_helper.js b/test/support/test_helper.js index fc9fcb34..49c6c1ee 100644 --- a/test/support/test_helper.js +++ b/test/support/test_helper.js @@ -128,11 +128,10 @@ afterEach(function(done) { }); }); - -afterEach(function () { +function cleanPGPoolConnections () { // TODO: this method will be replaced by psql.end pg.end(); -}); +} function deleteRedisKeys(keysToDelete, callback) { @@ -196,6 +195,7 @@ module.exports = { checkSurrogateKey: checkSurrogateKey, checkCache: checkCache, rmdirRecursiveSync: rmdirRecursiveSync, - configureMetadata + configureMetadata, + cleanPGPoolConnections };