Skip to content

Commit

Permalink
reduces agressiveness of reaper socket timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderankin committed Nov 25, 2024
1 parent f5212c1 commit 5ec22a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/testcontainers/core/container.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ def _create_instance(cls) -> "Reaper":
for _ in range(50):
try:
Reaper._socket = socket()
Reaper._socket.settimeout(0.5)
Reaper._socket.settimeout(1)
Reaper._socket.connect((container_host, container_port))
last_connection_exception = None
break
Expand Down

0 comments on commit 5ec22a5

Please sign in to comment.