Commit e4810065 authored by Thibault Lemaire's avatar Thibault Lemaire
Browse files

tests: fix: unstable flexisip_cli_dot_py<Internal>

2 merge requests!1440Merge tag '2.4.0' into master,!1333tests: fix: unstable flexisip_cli_dot_py<Internal>
Pipeline #82946 passed with stages
in 57 minutes and 36 seconds
Showing with 4 additions and 2 deletions
...@@ -116,7 +116,8 @@ def formatMessage(args): ...@@ -116,7 +116,8 @@ def formatMessage(args):
def sendMessage(remote_socket, message): def sendMessage(remote_socket, message):
import socket import socket
with socket.socket(socket.AF_UNIX) as s: with socket.socket(socket.AF_UNIX) as s:
s.settimeout(1) timeout_seconds = 3
s.settimeout(timeout_seconds)
try: try:
s.connect(remote_socket) s.connect(remote_socket)
s.send(message.encode()) s.send(message.encode())
......
...@@ -185,7 +185,8 @@ auto callScript(const std::string& command, int expected_status, BcAssert<>& ass ...@@ -185,7 +185,8 @@ auto callScript(const std::string& command, int expected_status, BcAssert<>& ass
return output; return output;
}); });
BC_HARD_ASSERT_TRUE(asserter.iterateUpTo(33, [&fut] { return fut.wait_for(0s) == std::future_status::ready; })); asserter.iterateUpTo(33, [&fut] { return LOOP_ASSERTION(fut.wait_for(0s) == std::future_status::ready); })
.hard_assert_passed();
return fut.get(); return fut.get();
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment