mirror of
https://github.com/knex/knex.git
synced 2025-12-28 15:38:41 +00:00
Fix some indentation and test comment
This commit is contained in:
parent
80ee5a8021
commit
57bac6cd58
@ -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)
|
||||
|
||||
@ -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();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user