Skip to content

Commit

Permalink
Merge pull request #2622 from IntersectMBO/ping_unix_socket
Browse files Browse the repository at this point in the history
fix(tests): update cardano-cli issue 49 and handle new error message
  • Loading branch information
mkoura committed Sep 16, 2024
2 parents 5584d1f + 07eb962 commit b1b0f12
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
7 changes: 6 additions & 1 deletion cardano_node_tests/tests/issues.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,12 @@
message="Repeated certificates stripped from Conway transaction.",
)

cli_49 = blockers.GH(issue=49, repo="IntersectMBO/cardano-cli", message="Not sending pings.")
cli_49 = blockers.GH(
issue=49,
fixed_in="9.4.1.1", # Fixed in version after 9.4.1.0
repo="IntersectMBO/cardano-cli",
message="Not sending pings.",
)
cli_268 = blockers.GH(
issue=268, repo="IntersectMBO/cardano-cli", message="Internal query mismatch."
)
Expand Down
3 changes: 3 additions & 0 deletions cardano_node_tests/tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -1322,6 +1322,9 @@ def test_ping_unix_socket(
err_str = cli_out.stderr.rstrip().decode("utf-8")
if "UnknownVersionInRsp" in err_str:
issues.node_5324.finish_test()
# cardano-ping reports user friendly error on misconfiguration on cardano-cli 9.4.1.1+
if "Unix sockets only support queries" in err_str:
return

out_str = cli_out.stdout.rstrip().decode("utf-8")
if not (out_str and out_str[0] == "{"):
Expand Down

0 comments on commit b1b0f12

Please sign in to comment.