Changeset View
Changeset View
Standalone View
Standalone View
tests/units/migrator/zanshin021migrationtest.cpp
Show First 20 Lines • Show All 61 Lines • ▼ Show 20 Line(s) | 61 | { | |||
---|---|---|---|---|---|
62 | QVERIFY(TestLib::TestSafety::checkTestIsIsolated()); | 62 | QVERIFY(TestLib::TestSafety::checkTestIsIsolated()); | ||
63 | auto storage = Akonadi::StorageInterface::Ptr(new Akonadi::Storage); | 63 | auto storage = Akonadi::StorageInterface::Ptr(new Akonadi::Storage); | ||
64 | TestLib::AkonadiDebug::dumpTree(storage); | 64 | TestLib::AkonadiDebug::dumpTree(storage); | ||
65 | //QProcess proc; | 65 | //QProcess proc; | ||
66 | //proc.execute("akonadiconsole"); | 66 | //proc.execute("akonadiconsole"); | ||
67 | //qApp->exec(); | 67 | //qApp->exec(); | ||
68 | } | 68 | } | ||
69 | 69 | | |||
70 | void cleanupTestCase() | ||||
71 | { | ||||
72 | // Give a chance for jobs still waiting for an event loop | ||||
73 | // run to be deleted through deleteLater() | ||||
74 | QTest::qWait(10); | ||||
75 | } | ||||
76 | | ||||
70 | void shouldFetchAllItems() | 77 | void shouldFetchAllItems() | ||
71 | { | 78 | { | ||
72 | // GIVEN | 79 | // GIVEN | ||
73 | Zanshin021Migrator migrator; | 80 | Zanshin021Migrator migrator; | ||
74 | 81 | | |||
75 | // WHEN | 82 | // WHEN | ||
76 | Zanshin021Migrator::SeenItemHash hash = migrator.fetchAllItems(); | 83 | Zanshin021Migrator::SeenItemHash hash = migrator.fetchAllItems(); | ||
77 | 84 | | |||
▲ Show 20 Lines • Show All 100 Lines • Show Last 20 Lines |