Skip to content

Commit 4b417c8

Browse files
author
Mike Slattery
authored
update comment
1 parent e9411be commit 4b417c8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/pg-pool/test/ending.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ describe('pool ending', () => {
4545
pool.query('SELECT $1::text as name', ['brianc']).then(() => completed++)
4646
}
4747
await pool.end() // pool.end()
48-
expect(completed).to.equal(19) // all 20 queries finish
48+
expect(completed).to.equal(19) // all 20 queries finish (only 19 here because bug #2163 the last query callback hasn't run yet)
4949
})
5050

5151
it('pool.end(true) - drop pending queries', async () => {
@@ -55,6 +55,6 @@ describe('pool ending', () => {
5555
pool.query('SELECT $1::text as name', ['brianc']).then(() => completed++)
5656
}
5757
await pool.end(true) // pool.end(true)
58-
expect(completed).to.equal(9) // only the 10 active queries finish, 10 pending queries get dropped
58+
expect(completed).to.equal(9) // 10 active queries finish, 10 pending queries get dropped (only 9 here because bug #2163 the last query callback hasn't run yet)
5959
})
6060
})

0 commit comments

Comments
 (0)