From 4d56e1775e7cea0176b8428503f5d898406828f3 Mon Sep 17 00:00:00 2001 From: Martchus Date: Thu, 12 Jan 2023 23:45:55 +0100 Subject: [PATCH] Remove test check for timeout again; we might run into it without systemd --- widgets/tests/wizard.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/widgets/tests/wizard.cpp b/widgets/tests/wizard.cpp index 31fc5a0..69e487e 100644 --- a/widgets/tests/wizard.cpp +++ b/widgets/tests/wizard.cpp @@ -6,8 +6,6 @@ // use meta-data of syncthingtray application here #include "resources/../../tray/resources/config.h" -#include - #include #include @@ -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());