The test fails semi-regularly on macOS (probably 5% of the times).
want_ex = psycopg.OperationalError
conn.execute("SET SESSION idle_in_transaction_session_timeout = 100")
- sleep(0.2)
+ sleep(1)
with pytest.raises(want_ex) as ex:
conn.execute("SELECT * from pg_tables")
want_ex = psycopg.OperationalError
await aconn.execute("SET SESSION idle_in_transaction_session_timeout = 100")
- await asleep(0.2)
+ await asleep(1)
with pytest.raises(want_ex) as ex:
await aconn.execute("SELECT * from pg_tables")