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
Branches
Tags
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): ...@@ -109,7 +109,7 @@ def test_connection_refused(binary_path: str):
eprint("") eprint("")
cli = pexpect.spawn( cli = pexpect.spawn(
command=binary_path, command=binary_path,
args=["connect", ":0", "-u", "testuser"], args=["connect", "127.0.0.1:0", "-u", "testuser"],
encoding="utf-8", encoding="utf-8",
timeout=1, timeout=1,
) )
...@@ -118,7 +118,7 @@ def test_connection_refused(binary_path: str): ...@@ -118,7 +118,7 @@ def test_connection_refused(binary_path: str):
cli.expect_exact("Enter password for testuser: ") cli.expect_exact("Enter password for testuser: ")
cli.sendline("") 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("Connection refused (os error 111)")
cli.expect_exact(pexpect.EOF) cli.expect_exact(pexpect.EOF)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment