fix tests
This commit is contained in:
parent
386fa12a89
commit
e52b45c815
@ -223,6 +223,7 @@ void LogEngine::clearDatabase()
|
|||||||
|
|
||||||
void LogEngine::logSystemEvent(const QDateTime &dateTime, bool active, Logging::LoggingLevel level)
|
void LogEngine::logSystemEvent(const QDateTime &dateTime, bool active, Logging::LoggingLevel level)
|
||||||
{
|
{
|
||||||
|
qCDebug(dcLogEngine()) << "Logging system event:" << active;
|
||||||
LogEntry entry(dateTime, level, Logging::LoggingSourceSystem);
|
LogEntry entry(dateTime, level, Logging::LoggingSourceSystem);
|
||||||
entry.setEventType(Logging::LoggingEventTypeActiveChange);
|
entry.setEventType(Logging::LoggingEventTypeActiveChange);
|
||||||
entry.setActive(active);
|
entry.setActive(active);
|
||||||
|
|||||||
@ -199,6 +199,7 @@ void TestLogging::systemLogs()
|
|||||||
qWarning() << "Restarting server";
|
qWarning() << "Restarting server";
|
||||||
restartServer();
|
restartServer();
|
||||||
qWarning() << "Restart done";
|
qWarning() << "Restart done";
|
||||||
|
waitForDBSync();
|
||||||
|
|
||||||
// there should be 2 log entries, one for shutdown, one for startup (from server restart)
|
// there should be 2 log entries, one for shutdown, one for startup (from server restart)
|
||||||
response = injectAndWait("Logging.GetLogEntries", params);
|
response = injectAndWait("Logging.GetLogEntries", params);
|
||||||
|
|||||||
Reference in New Issue
Block a user