copy to tests: cancel query with only 1 connection

This commit is contained in:
Simon Martín 2018-06-21 13:06:38 +02:00
parent 42a94a3b6c
commit 7e593bb3c9

View File

@ -46,6 +46,15 @@ function countInsertedRows (host, port, callback) {
}
describe('Cancel "copy to" commands', function () {
before(function() {
this.db_pool_size = global.settings.db_pool_size;
global.settings.db_pool_size = 1;
});
after(function() {
global.settings.db_pool_size = this.db_pool_size;
});
beforeEach(function (done) {
this.listener = server.listen(0, '127.0.0.1');