Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
BC
public
flexisip
Commits
78e19197
Commit
78e19197
authored
4 months ago
by
Émilie Gerbaud
Browse files
Options
Download
Patches
Plain Diff
[cli] test: add a minimum waiting time for failure
(cherry picked from commit
c039778a
)
parent
72f6a1bf
master
feat/FLEXISIP-454-update-sdk
feat/FLEXISIP-562-linphone-saas-b2bua-external-accounts
feat/add-libassert
feat/b2bua-sip-bridge-pick-random-in-pool-call-transfer-support
feat/multi-domains
feat/uploads_from_docker
fix/FLEXISIP-476-b2bua-duped-accounts-on-resub
fix/redis-re-sub-on-ill-formatted-ping
fix/webrtc-ice
2.5.0-alpha
1 merge request
!1366
[cli] test: add a minimum waiting time for failure
Pipeline
#85046
passed with stages
in 107 minutes and 15 seconds
Changes
1
Pipelines
13
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tester/cli-tester.cc
+4
-2
tester/cli-tester.cc
with
4 additions
and
2 deletions
tester/cli-tester.cc
+
4
−
2
View file @
78e19197
...
...
@@ -185,7 +185,8 @@ auto callScript(const std::string& command, int expected_status, BcAssert<>& ass
return
output
;
});
asserter
.
iterateUpTo
(
33
,
[
&
fut
]
{
return
LOOP_ASSERTION
(
fut
.
wait_for
(
0s
)
==
std
::
future_status
::
ready
);
})
asserter
.
iterateUpTo
(
33
,
[
&
fut
]
{
return
LOOP_ASSERTION
(
fut
.
wait_for
(
0s
)
==
std
::
future_status
::
ready
);
},
7s
)
.
hard_assert_passed
();
return
fut
.
get
();
...
...
@@ -228,7 +229,8 @@ void flexisip_cli_dot_py() {
return
handle
.
recv
(
0xFFFF
);
});
BC_HARD_ASSERT_TRUE
(
asserter
.
iterateUpTo
(
7
,
[
&
fut
]
{
return
fut
.
wait_for
(
0s
)
==
std
::
future_status
::
ready
;
}));
BC_HARD_ASSERT_TRUE
(
asserter
.
iterateUpTo
(
7
,
[
&
fut
]
{
return
fut
.
wait_for
(
0s
)
==
std
::
future_status
::
ready
;
},
2s
));
return
fut
.
get
();
};
...
...
This diff is collapsed.
Click to expand it.
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets