-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit 411869d
pool.end() resolves before the last pool.query() (#3461)
* Pass callback to client.end
* Add test for pool.end method
* fix: remove excessive _pulseQueue call
* fix: context problem
* fix: test resolve should be called when the last client is removed
* fix: wait for pool.end()
Because when you don't pass a callback to .end() it always returns a promise
* fix: handle idle timeout test data race
---------
Co-authored-by: Asadbek Raimov <asadbekraimov642@gmail.com>1 parent 26ace0a commit 411869d
3 files changed
+34
-13
lines changedLines changed: 13 additions & 10 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
161 | 161 |
| |
162 | 162 |
| |
163 | 163 |
| |
164 | - | ||
164 | + | ||
165 | 165 |
| |
166 | 166 |
| |
167 | 167 |
| |
168 | 168 |
| |
169 | 169 |
| |
170 | 170 |
| |
171 | 171 |
| |
172 | - | ||
173 | - | ||
172 | + | ||
173 | + | ||
174 | + | ||
175 | + | ||
176 | + | ||
177 | + | ||
178 | + | ||
179 | + | ||
174 | 180 |
| |
175 | 181 |
| |
176 | 182 |
| |
| |||
351 | 357 |
| |
352 | 358 |
| |
353 | 359 |
| |
354 | - | ||
355 | - | ||
356 | - | ||
360 | + | ||
361 | + | ||
357 | 362 |
| |
358 | 363 |
| |
359 | 364 |
| |
360 | 365 |
| |
361 | 366 |
| |
362 | 367 |
| |
363 | - | ||
364 | - | ||
365 | - | ||
368 | + | ||
366 | 369 |
| |
367 | 370 |
| |
368 | 371 |
| |
369 | 372 |
| |
370 | 373 |
| |
371 | 374 |
| |
372 | 375 |
| |
373 | - | ||
376 | + | ||
374 | 377 |
| |
375 | 378 |
| |
376 | 379 |
| |
|
Lines changed: 10 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
37 | 37 |
| |
38 | 38 |
| |
39 | 39 |
| |
40 | + | ||
41 | + | ||
42 | + | ||
43 | + | ||
44 | + | ||
45 | + | ||
46 | + | ||
47 | + | ||
48 | + | ||
49 | + | ||
40 | 50 |
|
Lines changed: 11 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
28 | 28 |
| |
29 | 29 |
| |
30 | 30 |
| |
31 | - | ||
32 | - | ||
31 | + | ||
32 | + | ||
33 | 33 |
| |
34 | 34 |
| |
35 | - | ||
35 | + | ||
36 | + | ||
37 | + | ||
38 | + | ||
39 | + | ||
40 | + | ||
41 | + | ||
42 | + | ||
43 | + | ||
36 | 44 |
| |
37 | 45 |
| |
38 | 46 |
| |
|
0 commit comments