Fix some indentation and test comment

This commit is contained in:
wubzz 2016-02-01 21:27:30 +01:00
parent 80ee5a8021
commit 57bac6cd58
2 changed files with 4 additions and 1 deletions

View File

@ -146,11 +146,14 @@ assign(Runner.prototype, {
var additionalErrorInformation = {
timeoutStack: error.stack
}
if(runner.builder) {
additionalErrorInformation.sql = runner.builder.sql
additionalErrorInformation.bindings = runner.builder.bindings
}
assign(timeoutError, additionalErrorInformation)
rejecter(timeoutError)
})
.catch(rejecter)

View File

@ -294,7 +294,7 @@ module.exports = function(knex) {
trx.raw('SELECT 1 = 1').then(function() {
//No connection is available, so try issuing a query without transaction.
//Since there is no available connection, it should throw a timeout error based on knex pool config.
//Since there is no available connection, it should throw a timeout error based on `aquireConnectionTimeout` from the knex config.
knexDb.raw('select * FROM accounts WHERE username = ?', ['Test'])
.then(function(res) {
expect(res).to.not.exist();