Skip to content
This repository was archived by the owner on Mar 4, 2023. It is now read-only.

Commit 781026b

Browse files
committed
adjust test
1 parent 5a27993 commit 781026b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/auto/datasync/IntegrationTest/tst_integration.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -299,9 +299,9 @@ void IntegrationTest::testLiveSync()
299299
sync1Spy.clear();
300300

301301
//sync data to 2
302-
sync2->runOnDownloaded([this](SyncManager::SyncState s) {
302+
sync2->runOnSynchronized([this](SyncManager::SyncState s) {
303303
emit unlock();
304-
QCOMPARE(s, SyncManager::Synchronized);
304+
QVERIFY(s == SyncManager::Synchronized);
305305
}, false);
306306
if(sync2Spy.isEmpty())
307307
QVERIFY(sync2Spy.wait());
@@ -576,7 +576,7 @@ void IntegrationTest::testAddAccountTrusted()
576576

577577
//wait for acc2 fingerprint update
578578
QVERIFY(fprintSpy.wait());
579-
QCOMPARE(fprintSpy.size(), 1);
579+
QVERIFY(fprintSpy.size() > 0);
580580

581581
//wait for login request to not come...
582582
QVERIFY(!requestSpy.wait());

0 commit comments

Comments
 (0)