Merge PR #625: Stabilize logging tests

This commit is contained in:
jenkins 2023-02-21 17:43:41 +01:00
commit e9e734dc60

View File

@ -389,9 +389,11 @@ void TestLogging::actionLog()
// wait for the outgoing data // wait for the outgoing data
// 3 packets: ExecuteAction reply, LogDatabaseUpdated signal and LogEntryAdded signal // 3 packets: ExecuteAction reply, LogDatabaseUpdated signal and LogEntryAdded signal
clientSpy.wait(500); while (clientSpy.count() < 3) {
if (clientSpy.count() < 3) { bool success = clientSpy.wait();
clientSpy.wait(500); if (!success) {
break;
}
} }
QVariantList logEntryAddedVariants = checkNotifications(clientSpy, "Logging.LogEntryAdded"); QVariantList logEntryAddedVariants = checkNotifications(clientSpy, "Logging.LogEntryAdded");