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