From 3646cd82dd244a92ec51ed6de12d0bf7329435c4 Mon Sep 17 00:00:00 2001 From: "d.kovalenko" Date: Wed, 14 Oct 2026 13:24:27 +0300 Subject: [PATCH] [#448] helper_step_of_failure_during_slow_start ignores ConnectionResetError pg8000 raises ConnectionResetError when works with our corrupted database. --- tests/test_testgres_common.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/test_testgres_common.py b/tests/test_testgres_common.py index 1cbc1109..93effdb2 100644 --- a/tests/test_testgres_common.py +++ b/tests/test_testgres_common.py @@ -538,6 +538,11 @@ def helper_step_of_failure_during_slow_start( assert x.value.description == "Cannot detect postmaster pid." return False + if type(x.value) is ConnectionResetError: + # pg8000 + assert "Connection reset by peer" in str(x.value) + return False + assert type(x.value) is QueryTimeoutException return True