mirror of
https://github.com/nextcloud/desktop.git
synced 2024-10-23 12:55:44 +03:00
Test: Fix testMovedWithError for vfs mode
This commit is contained in:
parent
85aefa4232
commit
734e49765d
1 changed files with 8 additions and 2 deletions
|
@ -865,7 +865,13 @@ private slots:
|
||||||
QTest::newRow("Vfs::Off") << Vfs::Off;
|
QTest::newRow("Vfs::Off") << Vfs::Off;
|
||||||
QTest::newRow("Vfs::WithSuffix") << Vfs::WithSuffix;
|
QTest::newRow("Vfs::WithSuffix") << Vfs::WithSuffix;
|
||||||
#ifdef Q_OS_WIN32
|
#ifdef Q_OS_WIN32
|
||||||
|
if (isVfsPluginAvailable(Vfs::WindowsCfApi))
|
||||||
|
{
|
||||||
QTest::newRow("Vfs::WindowsCfApi") << Vfs::WindowsCfApi;
|
QTest::newRow("Vfs::WindowsCfApi") << Vfs::WindowsCfApi;
|
||||||
|
} else {
|
||||||
|
QWARN("Skipping Vfs::WindowsCfApi");
|
||||||
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -888,7 +894,7 @@ private slots:
|
||||||
|
|
||||||
if (vfsMode != Vfs::Off)
|
if (vfsMode != Vfs::Off)
|
||||||
{
|
{
|
||||||
auto vfs = QSharedPointer<Vfs>(createVfsFromPlugin(Vfs::WithSuffix).release());
|
auto vfs = QSharedPointer<Vfs>(createVfsFromPlugin(vfsMode).release());
|
||||||
QVERIFY(vfs);
|
QVERIFY(vfs);
|
||||||
fakeFolder.switchToVfs(vfs);
|
fakeFolder.switchToVfs(vfs);
|
||||||
fakeFolder.syncJournal().internalPinStates().setForPath("", PinState::OnlineOnly);
|
fakeFolder.syncJournal().internalPinStates().setForPath("", PinState::OnlineOnly);
|
||||||
|
|
Loading…
Reference in a new issue