fix tests

pull/387/head
Michael Zanetti 2021-01-04 18:02:26 +01:00
parent 386fa12a89
commit e52b45c815
2 changed files with 2 additions and 0 deletions

View File

@ -223,6 +223,7 @@ void LogEngine::clearDatabase()
void LogEngine::logSystemEvent(const QDateTime &dateTime, bool active, Logging::LoggingLevel level)
{
qCDebug(dcLogEngine()) << "Logging system event:" << active;
LogEntry entry(dateTime, level, Logging::LoggingSourceSystem);
entry.setEventType(Logging::LoggingEventTypeActiveChange);
entry.setActive(active);

View File

@ -199,6 +199,7 @@ void TestLogging::systemLogs()
qWarning() << "Restarting server";
restartServer();
qWarning() << "Restart done";
waitForDBSync();
// there should be 2 log entries, one for shutdown, one for startup (from server restart)
response = injectAndWait("Logging.GetLogEntries", params);