Skip to content
Snippets Groups Projects
Commit 47e1f2e2 authored by Dmitry Rodionov's avatar Dmitry Rodionov
Browse files

fix: use explicit ipv4 address

Is needed because ipv6 is not available on CI but localhost is resolved
to both v4 and v6 addresses
parent 4674938a
No related branches found
No related tags found
1 merge request!821fix: py tests were not run because of gitlab treating command as a comment
Pipeline #31085 passed
......@@ -109,7 +109,7 @@ def test_connection_refused(binary_path: str):
eprint("")
cli = pexpect.spawn(
command=binary_path,
args=["connect", ":0", "-u", "testuser"],
args=["connect", "127.0.0.1:0", "-u", "testuser"],
encoding="utf-8",
timeout=1,
)
......@@ -118,7 +118,7 @@ def test_connection_refused(binary_path: str):
cli.expect_exact("Enter password for testuser: ")
cli.sendline("")
cli.expect_exact("failed to connect to address 'localhost:0'")
cli.expect_exact("failed to connect to address '127.0.0.1:0'")
cli.expect_exact("Connection refused (os error 111)")
cli.expect_exact(pexpect.EOF)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment