Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
jami-daemon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
jami-daemon
Commits
298a8e35
Commit
298a8e35
authored
3 years ago
by
Sébastien Blin
Browse files
Options
Downloads
Patches
Plain Diff
test: fix tearDown condition
Change-Id: I2204dbe8f5e141cdab23db82d9c9a4d47a90cf80
parent
fff41b5f
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
test/unitTest/call/call.cpp
+2
-3
2 additions, 3 deletions
test/unitTest/call/call.cpp
with
2 additions
and
3 deletions
test/unitTest/call/call.cpp
+
2
−
3
View file @
298a8e35
...
...
@@ -137,11 +137,10 @@ CallTest::tearDown()
std
::
condition_variable
cv
;
auto
currentAccSize
=
Manager
::
instance
().
getAccountList
().
size
();
std
::
atomic_bool
accountsRemoved
{
false
};
auto
wantedAccountNumber
=
currentAccSize
-
(
bob2Id
.
empty
()
?
2
:
3
);
confHandlers
.
insert
(
DRing
::
exportable_callback
<
DRing
::
ConfigurationSignal
::
AccountsChanged
>
([
&
]()
{
if
(
Manager
::
instance
().
getAccountList
().
size
()
<=
currentAccSize
-
bob2Id
.
empty
()
?
2
:
3
)
{
if
(
Manager
::
instance
().
getAccountList
().
size
()
<=
wantedAccountNumber
)
{
accountsRemoved
=
true
;
cv
.
notify_one
();
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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