From: Daniele Varrazzo Date: Wed, 10 Apr 2024 22:03:33 +0000 (+0200) Subject: test(pool): more lenient timeout in reconnect test timings X-Git-Tag: 3.2.0~52 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9ca82f484afc5da57dc449aa20f9176b26f3f6dc;p=thirdparty%2Fpsycopg.git test(pool): more lenient timeout in reconnect test timings --- diff --git a/tests/pool/test_pool.py b/tests/pool/test_pool.py index ff8fafd88..9aeed8f53 100644 --- a/tests/pool/test_pool.py +++ b/tests/pool/test_pool.py @@ -508,7 +508,7 @@ def test_reconnect(proxy, caplog, monkeypatch): assert len(deltas) == 3 want = 0.1 for delta in deltas: - assert delta == pytest.approx(want, 0.05), deltas + assert delta == pytest.approx(want, 0.1), deltas want *= 2 diff --git a/tests/pool/test_pool_async.py b/tests/pool/test_pool_async.py index 6a699e40b..525905a15 100644 --- a/tests/pool/test_pool_async.py +++ b/tests/pool/test_pool_async.py @@ -511,7 +511,7 @@ async def test_reconnect(proxy, caplog, monkeypatch): assert len(deltas) == 3 want = 0.1 for delta in deltas: - assert delta == pytest.approx(want, 0.05), deltas + assert delta == pytest.approx(want, 0.1), deltas want *= 2