mirror of
https://git.jami.net/savoirfairelinux/jami-daemon.git
synced 2025-08-12 22:09:25 +08:00
tests: fix build on GCC 13.2 (Ubuntu 24.04)
Change-Id: I80fb049e0c4e70005c844deed1cf35ed868a2293
This commit is contained in:
@ -694,9 +694,8 @@ FileTransferTest::testDeleteFile()
|
|||||||
libjami::sendFile(aliceId, convId, sendPath, "SEND", "");
|
libjami::sendFile(aliceId, convId, sendPath, "SEND", "");
|
||||||
|
|
||||||
CPPUNIT_ASSERT(cv.wait_for(lk, 30s, [&]() { return !iid.empty(); }));
|
CPPUNIT_ASSERT(cv.wait_for(lk, 30s, [&]() { return !iid.empty(); }));
|
||||||
auto dataPath = fileutils::get_data_dir() + DIR_SEPARATOR_STR + aliceId
|
auto dataPath = fileutils::get_data_dir() / aliceId / "conversation_data" / convId;
|
||||||
+ DIR_SEPARATOR_STR + "conversation_data" + DIR_SEPARATOR_STR + convId;
|
CPPUNIT_ASSERT(dhtnet::fileutils::isFile(dataPath / fmt::format("{}_{}", iid, tid)));
|
||||||
CPPUNIT_ASSERT(fileutils::isFile(fmt::format("{}/{}_{}", dataPath, iid, tid)));
|
|
||||||
|
|
||||||
// Delete file
|
// Delete file
|
||||||
libjami::sendMessage(aliceId, convId, ""s, iid, 1);
|
libjami::sendMessage(aliceId, convId, ""s, iid, 1);
|
||||||
@ -704,7 +703,7 @@ FileTransferTest::testDeleteFile()
|
|||||||
// Verify message is updated
|
// Verify message is updated
|
||||||
CPPUNIT_ASSERT(cv.wait_for(lk, 30s, [&]() { return messageUpdated; }));
|
CPPUNIT_ASSERT(cv.wait_for(lk, 30s, [&]() { return messageUpdated; }));
|
||||||
// Verify file is deleted
|
// Verify file is deleted
|
||||||
CPPUNIT_ASSERT(!fileutils::isFile(fmt::format("{}/{}_{}", dataPath, iid, tid)));
|
CPPUNIT_ASSERT(!dhtnet::fileutils::isFile(dataPath / fmt::format("{}_{}", iid, tid)));
|
||||||
|
|
||||||
libjami::unregisterSignalHandlers();
|
libjami::unregisterSignalHandlers();
|
||||||
std::this_thread::sleep_for(5s);
|
std::this_thread::sleep_for(5s);
|
||||||
|
Reference in New Issue
Block a user