Remove test check for timeout again; we might run into it without systemd

This commit is contained in:
Martchus 2023-01-12 23:45:55 +01:00
parent 2c892d583f
commit 4d56e1775e
1 changed files with 5 additions and 4 deletions

View File

@ -6,8 +6,6 @@
// use meta-data of syncthingtray application here
#include "resources/../../tray/resources/config.h"
#include <c++utilities/conversion/stringbuilder.h>
#include <QtTest/QtTest>
#include <QApplication>
@ -196,9 +194,12 @@ void WizardTests::testConfiguringLauncher()
if (setupDetection.launcherExitCode.has_value()) {
qDebug() << "launcher exit code: " << setupDetection.launcherExitCode.value();
}
qDebug() << "user service state: " << setupDetection.userService.unitFileState();
qDebug() << "system service state: " << setupDetection.systemService.unitFileState();
if (setupDetection.timedOut) {
qDebug() << "timeout of " << setupDetection.timeout.interval() << " ms has been exceeded (normal if systemd units not available)";
}
// -> verify whether the launcher setup detection is in the expected state before checking UI itself
const auto timeoutStr = CppUtilities::argsToString("timeout of ", setupDetection.timeout.interval(), " ms not exceeded");
QVERIFY2(!setupDetection.timedOut, timeoutStr.data());
QVERIFY(setupDetection.launcherExitCode.has_value());
QCOMPARE(setupDetection.launcherExitCode.value(), 0);
QVERIFY(!setupDetection.launcherError.has_value());