MCPcopy
hub / github.com/psycopg/psycopg / test_no_notify_timeout

Function test_no_notify_timeout

tests/test_notify_async.py:100–106  ·  view source on GitHub ↗
(aconn)

Source from the content-addressed store, hash-verified

98@pytest.mark.slow
99@pytest.mark.timing
100async def test_no_notify_timeout(aconn):
101 await aconn.set_autocommit(True)
102 t0 = time()
103 async for n in aconn.notifies(timeout=0.5):
104 assert False
105 dt = time() - t0
106 assert 0.5 <= dt < 0.75
107
108
109@pytest.mark.slow

Callers

nothing calls this directly

Calls 2

set_autocommitMethod · 0.45
notifiesMethod · 0.45

Tested by

no test coverage detected