pgx/pgxpool
James Hartig e665f74c99 fix TestPoolBackgroundChecksMinConns and NewConnsCount
Previously it was checking TotalConns but that includes ConstructingConns.
Instead it should directly check IdleConns so the next Acquire takes one of
those and doesn't make a 3rd connection. The check against the context was
also wrong which prevented this from timing out after 2 minutes.

This also fixes a bug where NewConnsCount was not correctly counting
connections created by Acquire directly.

Fixes #1690
2023-07-22 08:28:39 -05:00
..
batch_results.go Replace QueryFunc with ForEachScannedRow 2022-07-07 20:29:04 -05:00
bench_test.go Rename pgxpool.NewConfig to NewWithConfig 2022-07-30 09:16:42 -05:00
common_test.go Add context timeouts for more pgxpool tests 2023-05-29 11:15:40 -05:00
conn.go Use puddle v2 2022-07-30 12:16:16 -05:00
conn_test.go Drastically increase allowed test times for potato CI 2023-07-11 21:16:08 -05:00
doc.go Update docs and changelog for renamed pgxpool.NewWithConfig 2022-09-16 18:16:36 -05:00
pool.go fix TestPoolBackgroundChecksMinConns and NewConnsCount 2023-07-22 08:28:39 -05:00
pool_test.go fix TestPoolBackgroundChecksMinConns and NewConnsCount 2023-07-22 08:28:39 -05:00
rows.go Ensure pgxpool.Pool.QueryRow.Scan releases connection on panic 2023-06-03 07:39:56 -05:00
stat.go Use puddle v2 2022-07-30 12:16:16 -05:00
tx.go Replace Begin and BeginTx methods with functions 2022-07-09 17:25:55 -05:00
tx_test.go Drastically increase allowed test times for potato CI 2023-07-11 21:16:08 -05:00