Commit bc03ad9
pgxpool: only assert the lower bound of the ShouldPing idle duration
TestPoolAcquireChecksIdleConnsWithShouldPing released a connection, slept 200ms, and then required the idle duration
reported to ShouldPing to be within 100ms of the sleep. A loaded CI runner can delay the acquire well past the sleep,
and the test failed with an idle duration of 317.5ms. Only the lower bound is meaningful, so assert that instead.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>1 parent d7d8279 commit bc03ad9
1 file changed
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
235 | 235 | | |
236 | 236 | | |
237 | 237 | | |
| 238 | + | |
| 239 | + | |
238 | 240 | | |
239 | 241 | | |
240 | 242 | | |
241 | 243 | | |
242 | | - | |
| 244 | + | |
243 | 245 | | |
244 | 246 | | |
245 | 247 | | |
246 | 248 | | |
247 | 249 | | |
248 | 250 | | |
249 | 251 | | |
250 | | - | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
251 | 255 | | |
252 | 256 | | |
253 | 257 | | |
| |||
0 commit comments