From b71838b1d919d4087aa2ec9b9f1e4b0d7aadff34 Mon Sep 17 00:00:00 2001 From: Till Hoffmann Date: Mon, 4 Apr 2022 17:48:20 -0400 Subject: [PATCH] Consider ConnectionError a transient exception (fixes #193). --- testcontainers/core/waiting_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testcontainers/core/waiting_utils.py b/testcontainers/core/waiting_utils.py index 70294bdf7..cafc1ae32 100644 --- a/testcontainers/core/waiting_utils.py +++ b/testcontainers/core/waiting_utils.py @@ -26,7 +26,7 @@ # Get a tuple of transient exceptions for which we'll retry. Other exceptions will be raised. -TRANSIENT_EXCEPTIONS = (TimeoutError, ConnectionResetError, BrokenPipeError) +TRANSIENT_EXCEPTIONS = (TimeoutError, ConnectionError) def wait_container_is_ready(*transient_exceptions):