You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/pg-pool/test/ending.js
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -45,7 +45,7 @@ describe('pool ending', () => {
45
45
pool.query('SELECT $1::text as name',['brianc']).then(()=>completed++)
46
46
}
47
47
awaitpool.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)
49
49
})
50
50
51
51
it('pool.end(true) - drop pending queries',async()=>{
@@ -55,6 +55,6 @@ describe('pool ending', () => {
55
55
pool.query('SELECT $1::text as name',['brianc']).then(()=>completed++)
56
56
}
57
57
awaitpool.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)
0 commit comments