Skip to content

Commit 0f625c4

Browse files
committed
test(quota): verify protection under DatabaseAndFilesystem on second deletion.
Signed-off-by: Camila Ayres <hello@camilasan.com>
1 parent 3de8d02 commit 0f625c4

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

test/testsyncdelete.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,10 @@ private slots:
453453
QCOMPARE(entry._errorCategory, SyncJournalErrorBlacklistRecord::InsufficientRemoteStorage);
454454
}
455455

456-
// Server deletes A again. big.txt must still be protected.
456+
// Server deletes A again. The real client uses DatabaseAndFilesystem with no local paths
457+
// (server-triggered sync, no local changes). The fix in startAsync() must force NormalQuery
458+
// for A's subdirectory job so that big.txt is discovered and checkNewDeleteConflict fires.
459+
fakeFolder.syncEngine().setLocalDiscoveryOptions(OCC::LocalDiscoveryStyle::DatabaseAndFilesystem);
457460
fakeFolder.remoteModifier().remove(QStringLiteral("A"));
458461
QVERIFY(!fakeFolder.syncOnce());
459462
QVERIFY(fakeFolder.currentLocalState().find(QStringLiteral("A/big.txt")));

0 commit comments

Comments
 (0)