From: Matthieu Gallien Date: Fri, 4 Feb 2022 15:32:56 +0000 (+0100) Subject: simplify sync folder in some automated local discovery tests X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~17^2~158^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=d0c2570b04712f708204438f9ce9ef56f20aad82;p=nextcloud-desktop.git simplify sync folder in some automated local discovery tests should be faster and easier to understand Signed-off-by: Matthieu Gallien --- diff --git a/test/testlocaldiscovery.cpp b/test/testlocaldiscovery.cpp index fedec8164..fa9ae35ce 100644 --- a/test/testlocaldiscovery.cpp +++ b/test/testlocaldiscovery.cpp @@ -328,7 +328,7 @@ private slots: void testCreateFileWithTrailingSpaces_localTrimmedDoesExist_dontRenameAndUploadFile() { - FakeFolder fakeFolder { FileInfo::A12_B12_C12_S12() }; + FakeFolder fakeFolder{FileInfo{}}; QCOMPARE(fakeFolder.currentLocalState(), fakeFolder.currentRemoteState()); const QString fileWithSpaces(" foo"); const QString fileTrimmed("foo"); @@ -346,7 +346,7 @@ private slots: void testCreateFileWithTrailingSpaces_localTrimmedAlsoCreated_dontRenameAndUploadFile() { - FakeFolder fakeFolder { FileInfo::A12_B12_C12_S12() }; + FakeFolder fakeFolder{FileInfo{}}; QCOMPARE(fakeFolder.currentLocalState(), fakeFolder.currentRemoteState()); const QString fileWithSpaces(" foo"); const QString fileTrimmed("foo");