diff --git a/knex/knex-test.ts b/knex/knex-test.ts index 081f98867d..5e5c64428d 100644 --- a/knex/knex-test.ts +++ b/knex/knex-test.ts @@ -12,6 +12,7 @@ var knex = Knex({ }); var knex = Knex({ + debug: true, client: 'mysql', connection: { socketPath : '/path/to/socket.sock', @@ -32,7 +33,13 @@ var knex = Knex({ }, pool: { min: 0, - max: 7 + max: 7, + afterCreate: (connection, callback) => { + return callback(null, connection); + }, + beforeDestroy: (connection, callback) => { + return callback(null, connection); + } } });