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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
jami-daemon
Commits
340e4d0d
Commit
340e4d0d
authored
Jan 11, 2024
by
Sébastien Blin
Browse files
Options
Downloads
Patches
Plain Diff
test: fix callback crash
Change-Id: Ia6d5e2c8f211e5206dec214232c929e624c307de
parent
75093823
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
test/unitTest/conversation/conversation.cpp
+5
-5
5 additions, 5 deletions
test/unitTest/conversation/conversation.cpp
with
5 additions
and
5 deletions
test/unitTest/conversation/conversation.cpp
+
5
−
5
View file @
340e4d0d
...
@@ -1257,10 +1257,10 @@ ConversationTest::testSendMessageWithLotOfKnownDevices()
...
@@ -1257,10 +1257,10 @@ ConversationTest::testSendMessageWithLotOfKnownDevices()
alice2Account
->
accountManager
()
->
getInfo
()
->
contacts
->
foundAccountDevice
(
h
);
alice2Account
->
accountManager
()
->
getInfo
()
->
contacts
->
foundAccountDevice
(
h
);
}
}
auto
bootstraped
=
false
;
auto
bootstraped
=
std
::
make_shared
<
bool
>
(
false
)
;
alice2Account
->
convModule
()
->
onBootstrapStatus
(
alice2Account
->
convModule
()
->
onBootstrapStatus
(
[
&
](
std
::
string
/*convId*/
,
Conversation
::
BootstrapStatus
status
)
{
[
=
](
std
::
string
/*convId*/
,
Conversation
::
BootstrapStatus
status
)
{
bootstraped
=
status
==
Conversation
::
BootstrapStatus
::
SUCCESS
;
*
bootstraped
=
status
==
Conversation
::
BootstrapStatus
::
SUCCESS
;
cv
.
notify_one
();
cv
.
notify_one
();
});
});
...
@@ -1268,8 +1268,8 @@ ConversationTest::testSendMessageWithLotOfKnownDevices()
...
@@ -1268,8 +1268,8 @@ ConversationTest::testSendMessageWithLotOfKnownDevices()
CPPUNIT_ASSERT
(
cv
.
wait_for
(
lk
,
30s
,
[
&
]()
{
return
conversationAlice2Ready
;
}));
CPPUNIT_ASSERT
(
cv
.
wait_for
(
lk
,
30s
,
[
&
]()
{
return
conversationAlice2Ready
;
}));
// Should bootstrap successfully
// Should bootstrap successfully
bootstraped
=
false
;
*
bootstraped
=
false
;
CPPUNIT_ASSERT
(
cv
.
wait_for
(
lk
,
30s
,
[
&
]()
{
return
bootstraped
;
}));
CPPUNIT_ASSERT
(
cv
.
wait_for
(
lk
,
30s
,
[
&
]()
{
return
*
bootstraped
;
}));
libjami
::
unregisterSignalHandlers
();
libjami
::
unregisterSignalHandlers
();
}
}
...
...
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