Skip to content

Commit

Permalink
Fix and enable pool verify option test (#2528)
Browse files Browse the repository at this point in the history
by not double-releasing.

Reviewed-by: Sehrope Sarkuni <sehrope@jackdb.com>
  • Loading branch information
charmander committed May 27, 2021
1 parent 8f0db30 commit 7667e7c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/pg-pool/test/verify.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,9 @@ const it = require('mocha').it
const Pool = require('../')

describe('verify', () => {
it('verifies a client with a callback', false, (done) => {
it('verifies a client with a callback', (done) => {
const pool = new Pool({
verify: (client, cb) => {
client.release()
cb(new Error('nope'))
},
})
Expand Down

0 comments on commit 7667e7c

Please sign in to comment.