From: Claudio Cambra Date: Tue, 25 Jun 2024 15:26:15 +0000 (+0800) Subject: Amend behaviour of suffix virtual files test to reflect new expected behaviour X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~6^2~192^2~2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=1382f924c7116575aa21c7e7c238d649f89022f7;p=nextcloud-desktop.git Amend behaviour of suffix virtual files test to reflect new expected behaviour Signed-off-by: Claudio Cambra --- diff --git a/test/testsyncvirtualfiles.cpp b/test/testsyncvirtualfiles.cpp index 44759da6a..b561eb2c9 100644 --- a/test/testsyncvirtualfiles.cpp +++ b/test/testsyncvirtualfiles.cpp @@ -175,17 +175,14 @@ private slots: QCOMPARE(dbRecord(fakeFolder, "A/a1" DVSUFFIX)._fileSize, 65); cleanup(); - // If the local virtual file file is removed, it'll just be recreated + // If the local virtual file is removed, it should be gone remotely too if (!doLocalDiscovery) fakeFolder.syncEngine().setLocalDiscoveryOptions(LocalDiscoveryStyle::DatabaseAndFilesystem, { "A" }); fakeFolder.localModifier().remove("A/a1" DVSUFFIX); QVERIFY(fakeFolder.syncOnce()); QVERIFY(!fakeFolder.currentLocalState().find("A/a1")); - QVERIFY(fakeFolder.currentLocalState().find("A/a1" DVSUFFIX)); - QVERIFY(fakeFolder.currentRemoteState().find("A/a1")); - QVERIFY(itemInstruction(completeSpy, "A/a1" DVSUFFIX, CSYNC_INSTRUCTION_NEW)); - QCOMPARE(dbRecord(fakeFolder, "A/a1" DVSUFFIX)._type, ItemTypeVirtualFile); - QCOMPARE(dbRecord(fakeFolder, "A/a1" DVSUFFIX)._fileSize, 65); + QVERIFY(!fakeFolder.currentLocalState().find("A/a1" DVSUFFIX)); + QVERIFY(!fakeFolder.currentRemoteState().find("A/a1")); cleanup(); // Remote rename is propagated