MCPcopy Index your code
hub / github.com/MagicStack/asyncpg / kill_connectivity

Method kill_connectivity

tests/test_adversity.py:73–74  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

71 await con.fetch('SELECT pg_sleep($1)', query_runtime)
72
73 def kill_connectivity():
74 self.proxy.trigger_connectivity_loss()
75
76 new_pool = self.create_pool(
77 database='postgres', min_size=pool_size, max_size=pool_size,

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected