mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-21 20:45:51 +03:00
Move test for issue #1329 from t1.pl to new test system
This commit is contained in:
parent
a29320b18d
commit
dfedb09fd8
1 changed files with 16 additions and 0 deletions
|
@ -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 a new issue