fix(tests): will currently detect wrong attempts to access deleted files

with virtual files we may wrongly try to access a file we just deleted

in which case an assert should ensure we capture this during automated
tests

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
This commit is contained in:
Matthieu Gallien 2025-06-05 11:30:01 +02:00
parent d082f839d0
commit c837e1c010

View File

@ -780,6 +780,7 @@ OCC::CfApiWrapper::FileHandle OCC::CfApiWrapper::handleForPath(const QString &pa
if (!FileSystem::fileExists(path)) {
qCWarning(lcCfApiWrapper) << "does not exist" << path;
Q_ASSERT(false);
return {};
}