Skip to content

Commit 3000ca0

Browse files
committed
fix crash unrelated within FolderStatusModelTest
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
1 parent e416015 commit 3000ca0

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

test/testfolderstatusmodel.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,16 +59,16 @@ private Q_SLOTS:
5959
account->setCapabilities(capabilities);
6060
account->setCredentials(new FakeCredentials{fakeFolder.networkAccessManager()});
6161
account->setUrl(QUrl(("owncloud://somehost/owncloud")));
62-
auto accountState = FakeAccountState(account);
63-
QVERIFY(accountState.isConnected());
62+
auto accountState = new FakeAccountState(account);
63+
QVERIFY(accountState->isConnected());
6464

6565
auto folderDef = folderDefinition(fakeFolder.localPath());
6666
folderDef.targetPath = "";
67-
const auto folder = FolderMan::instance()->addFolder(&accountState, folderDef);
67+
const auto folder = FolderMan::instance()->addFolder(accountState, folderDef);
6868
QVERIFY(folder);
6969

7070
FolderStatusModel test;
71-
test.setAccountState(&accountState);
71+
test.setAccountState(accountState);
7272

7373
QSKIP("Initial test implementation is known to be broken");
7474
QAbstractItemModelTester modeltester(&test);

0 commit comments

Comments
 (0)