mirror of
https://github.com/chylex/Nextcloud-Desktop.git
synced 2025-05-10 08:34:08 +02:00
Move test for issue #1329 from t1.pl to new test system
This commit is contained in:
parent
a29320b18d
commit
dfedb09fd8
@ -41,6 +41,22 @@ private slots:
|
||||
|
||||
QCOMPARE(fakeFolder.currentLocalState(), fakeFolder.currentRemoteState());
|
||||
}
|
||||
|
||||
void issue1329()
|
||||
{
|
||||
FakeFolder fakeFolder{ FileInfo::A12_B12_C12_S12() };
|
||||
|
||||
fakeFolder.localModifier().remove("B");
|
||||
QVERIFY(fakeFolder.syncOnce());
|
||||
QCOMPARE(fakeFolder.currentLocalState(), fakeFolder.currentRemoteState());
|
||||
|
||||
// Add a directory that was just removed in the previous sync:
|
||||
fakeFolder.localModifier().mkdir("B");
|
||||
fakeFolder.localModifier().insert("B/b1");
|
||||
QVERIFY(fakeFolder.syncOnce());
|
||||
QVERIFY(fakeFolder.currentRemoteState().find("B/b1"));
|
||||
QCOMPARE(fakeFolder.currentLocalState(), fakeFolder.currentRemoteState());
|
||||
}
|
||||
};
|
||||
|
||||
QTEST_GUILESS_MAIN(TestSyncDelete)
|
||||
|
Loading…
Reference in New Issue
Block a user