Expose function to clean all database connections in the pool

This commit is contained in:
Daniel García Aubert
2017-07-31 18:10:14 +02:00
parent 664db4b5cf
commit 435d902e45
+4 -4
View File
@@ -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
};