mirror of https://github.com/nymea/nymea.git
Stabilize logging tests
parent
b409fbe3be
commit
51d08f94cf
|
|
@ -389,9 +389,11 @@ void TestLogging::actionLog()
|
|||
|
||||
// wait for the outgoing data
|
||||
// 3 packets: ExecuteAction reply, LogDatabaseUpdated signal and LogEntryAdded signal
|
||||
clientSpy.wait(500);
|
||||
if (clientSpy.count() < 3) {
|
||||
clientSpy.wait(500);
|
||||
while (clientSpy.count() < 3) {
|
||||
bool success = clientSpy.wait();
|
||||
if (!success) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
QVariantList logEntryAddedVariants = checkNotifications(clientSpy, "Logging.LogEntryAdded");
|
||||
|
|
|
|||
Loading…
Reference in New Issue