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: pool-3.2.2~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f8060a41b211de8e5572c4a43685acbe2d177fe0;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