fix: sync completion across clients and restore Windows build
- Guard SystemTray DBus members correctly for MinGW builds\n- Let remote done override local scheduled/in-progress despite clock skew\n- Add Android start/lead reminders and lead-minute setting\n- Use expedited WorkManager for local Android changes\n- Add desktop/Android completion and reminder validation
This commit is contained in:
@@ -115,6 +115,19 @@ void TestSyncIntegration::twoClientsConverge()
|
||||
QTRY_VERIFY_WITH_TIMEOUT(serviceB.itemsForDay(tomorrow).size() == 1, 20000);
|
||||
QCOMPARE(serviceB.itemsForDay(tomorrow).first().task.title, QStringLiteral("跨设备任务"));
|
||||
|
||||
const QString sharedBlockId = serviceA.itemsForDay(tomorrow).first().block.id;
|
||||
QVERIFY2(serviceA.setBlockStatus(sharedBlockId, QStringLiteral("done"), &error), qPrintable(error));
|
||||
QTRY_VERIFY_WITH_TIMEOUT(!serviceB.itemsForDay(tomorrow).isEmpty() &&
|
||||
serviceB.itemsForDay(tomorrow).first().block.status ==
|
||||
QStringLiteral("done"),
|
||||
20000);
|
||||
QVERIFY2(serviceB.setBlockStatus(sharedBlockId, QStringLiteral("scheduled"), &error),
|
||||
qPrintable(error));
|
||||
QTRY_VERIFY_WITH_TIMEOUT(!serviceA.itemsForDay(tomorrow).isEmpty() &&
|
||||
serviceA.itemsForDay(tomorrow).first().block.status ==
|
||||
QStringLiteral("scheduled"),
|
||||
20000);
|
||||
|
||||
QVERIFY2(serviceA.updateBlock(serviceA.itemsForDay(tomorrow).first().block.id,
|
||||
QStringLiteral("跨设备任务 v2"),
|
||||
start.addSecs(3600),
|
||||
|
||||
Reference in New Issue
Block a user