Fix too many connection error (#261)
Disconnect db instance on TX test which makes multiple pool connection
This commit is contained in:
parent
f9ab75c1d9
commit
aa15ee553a
|
@ -30,6 +30,13 @@ describe('transactions with promise', function() {
|
|||
});
|
||||
});
|
||||
|
||||
after(function(done) {
|
||||
// disconnect from this db to avoid too many connection error
|
||||
// due to multiple instance of connection pool
|
||||
db.disconnect();
|
||||
done();
|
||||
});
|
||||
|
||||
var currentTx;
|
||||
var hooks = [];
|
||||
// Return an async function to start a transaction and create a post
|
||||
|
|
Loading…
Reference in New Issue