MCPcopy
hub / github.com/psycopg/psycopg / test_check_idle

Function test_check_idle

tests/pool/test_pool.py:735–740  ·  view source on GitHub ↗
(dsn)

Source from the content-addressed store, hash-verified

733
734
735def test_check_idle(dsn):
736 with pool.ConnectionPool(dsn, min_size=2) as p:
737 p.wait(1.0)
738 p.check()
739 with p.connection() as conn:
740 assert conn.info.transaction_status == TransactionStatus.IDLE
741
742
743@pytest.mark.crdb_skip("pg_terminate_backend")

Callers

nothing calls this directly

Calls 3

waitMethod · 0.45
checkMethod · 0.45
connectionMethod · 0.45

Tested by

no test coverage detected