mirror of
https://git.jami.net/savoirfairelinux/jami-daemon.git
synced 2025-08-12 22:09:25 +08:00
misc: fix ut_conversation_call
Change-Id: I6dc0b22f4336dde4db1d6a869e4447ad51d809ff
This commit is contained in:

committed by
Adrien Béraud

parent
5b56cc7e42
commit
87c5f3cef8
@ -821,8 +821,9 @@ ConversationCallTest::testJoinWhileActiveCall()
|
||||
&& data.messages.rbegin()->at("type") == "application/call-history+json";
|
||||
};
|
||||
// should get message
|
||||
cv.wait_for(lk, 30s, [&]() { return lastCommitIsCall(aliceData_); });
|
||||
CPPUNIT_ASSERT(cv.wait_for(lk, 30s, [&]() { return lastCommitIsCall(aliceData_); }));
|
||||
|
||||
auto confId = aliceData_.messages.rbegin()->at("confId");
|
||||
libjami::addConversationMember(aliceId, aliceData_.id, bobUri);
|
||||
CPPUNIT_ASSERT(cv.wait_for(lk, 60s, [&]() { return bobData_.requestReceived; }));
|
||||
|
||||
@ -834,13 +835,12 @@ ConversationCallTest::testJoinWhileActiveCall()
|
||||
|
||||
CPPUNIT_ASSERT(libjami::getActiveCalls(bobId, bobData_.id).size() == 1);
|
||||
|
||||
// hangup bob MUST NOT stop the conference
|
||||
aliceData_.messages.clear();
|
||||
bobData_.messages.clear();
|
||||
aliceData_.conferenceChanged = false;
|
||||
Manager::instance().hangupCall(aliceId, callId);
|
||||
Manager::instance().hangupConference(aliceId, confId);
|
||||
|
||||
CPPUNIT_ASSERT(!cv.wait_for(lk, 10s, [&]() { return aliceData_.conferenceRemoved; }));
|
||||
CPPUNIT_ASSERT(cv.wait_for(lk, 10s, [&]() { return aliceData_.conferenceRemoved; }));
|
||||
}
|
||||
|
||||
void
|
||||
|
Reference in New Issue
Block a user