Skip to content

Commit bf5ada7

Browse files
authored
Fix starting of S3 recipe (#16933)
1 parent ab7a125 commit bf5ada7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

ydb/tests/tools/s3_recipe/__main__.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ def start(argv):
1818
logging.debug("Starting S3 recipe")
1919
pm = PortManager()
2020
port = pm.get_port()
21-
url = "http://localhost:{port}".format(port=port)
21+
url = "http://localhost:{port}".format(port=port) # S3 libs require DNS name for S3 endpoint
22+
check_url = "http://[::1]:{port}".format(port=port)
2223
cmd = [
2324
yatest.common.binary_path(MOTO_SERVER_PATH),
2425
"s3",
@@ -28,7 +29,7 @@ def start(argv):
2829

2930
def is_s3_ready():
3031
try:
31-
response = requests.get(url)
32+
response = requests.get(check_url)
3233
response.raise_for_status()
3334
return True
3435
except requests.RequestException as err:

0 commit comments

Comments
 (0)