diff --git a/test/unitTest/conversation/call.cpp b/test/unitTest/conversation/call.cpp index f0a955f5b844310e3b32aeec47c4fa212d09bad9..d18d4e59fd0018ced3ddd921409a2b6db3ab62e5 100644 --- a/test/unitTest/conversation/call.cpp +++ b/test/unitTest/conversation/call.cpp @@ -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));