test: fix ut_conversation_call on CI

There is no camera

Change-Id: I1260c06cefc7d86c60ef3b24235c2be6f2aa0b48
This commit is contained in:
Sébastien Blin
2023-03-02 16:18:36 -05:00
parent 59d063c94b
commit 75e4a5d365

View File

@ -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));