From b39a14bf2b3b05747174d5ae4b20dae964ed2021 Mon Sep 17 00:00:00 2001 From: Kevin Ottens Date: Wed, 27 May 2020 15:11:25 +0200 Subject: [PATCH] testLaunchOnStartup shouldn't fail on dev setup This test was failing locally for me. Indeed, through QStandardPaths it was finding the user settings of my production client and not having the initial state it expected. Using QStandardPaths test mode then it starts from a clean slate every time. Signed-off-by: Kevin Ottens --- test/testutility.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/testutility.cpp b/test/testutility.cpp index 66473dfa3..2e2b03add 100644 --- a/test/testutility.cpp +++ b/test/testutility.cpp @@ -20,6 +20,11 @@ class TestUtility : public QObject Q_OBJECT private slots: + void initTestCase() + { + QStandardPaths::setTestModeEnabled(true); + } + void testFormatFingerprint() { QVERIFY2(formatFingerprint("68ac906495480a3404beee4874ed853a037a7a8f") -- 2.30.2