mirror of
https://git.jami.net/savoirfairelinux/jami-daemon.git
synced 2025-08-12 22:09:25 +08:00
test: fix ut_conversation_call on CI
There is no camera Change-Id: I1260c06cefc7d86c60ef3b24235c2be6f2aa0b48
This commit is contained in:
@ -906,15 +906,12 @@ ConversationCallTest::testCallSelfIfDefaultHost()
|
||||
auto callId = libjami::placeCallWithMedia(aliceId, "swarm:" + aliceData_.id, {});
|
||||
auto lastCommitIsCall = [&](const auto& data) {
|
||||
return !data.messages.empty()
|
||||
&& data.messages.rbegin()->at("type") == "application/call-history+json"
|
||||
&& !pInfos_.empty();
|
||||
&& data.messages.rbegin()->at("type") == "application/call-history+json";
|
||||
};
|
||||
// should get message
|
||||
cv.wait_for(lk, 30s, [&]() {
|
||||
CPPUNIT_ASSERT(cv.wait_for(lk, 30s, [&]() {
|
||||
return lastCommitIsCall(aliceData_) && lastCommitIsCall(bobData_);
|
||||
});
|
||||
CPPUNIT_ASSERT(pInfos_.size() == 1);
|
||||
CPPUNIT_ASSERT(pInfos_[0]["videoMuted"] == "false");
|
||||
}));
|
||||
auto confId = aliceData_.messages.rbegin()->at("confId");
|
||||
// Alice should be the host
|
||||
CPPUNIT_ASSERT(aliceAccount->getConference(confId));
|
||||
|
Reference in New Issue
Block a user