This commit is contained in:
Brian C 2024-06-19 09:45:52 -05:00 committed by GitHub
parent 9baa56eaa2
commit 3e4d545c20
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -106,7 +106,7 @@ suite.test('query with timeout on query basis', (cb) => {
const pool = new pg.Pool()
pool.connect().then((client) => {
client.query(
{text: 'SELECT pg_sleep(20)', query_timeout: 1000},
{ text: 'SELECT pg_sleep(20)', query_timeout: 1000 },
assert.calls(function (err, result) {
assert(err)
assert(err.message === 'Query read timeout')