From 006debf567aa478d1481ad1710a767461c1aad41 Mon Sep 17 00:00:00 2001 From: Michael Zanetti Date: Sun, 8 Oct 2017 03:07:48 +0200 Subject: [PATCH] stabilize REST tests --- tests/auto/restdeviceclasses/testrestdeviceclasses.cpp | 1 + tests/auto/restdevices/testrestdevices.cpp | 1 + tests/auto/restlogging/testrestlogging.cpp | 1 + tests/auto/restplugins/testrestplugins.cpp | 1 + tests/auto/restrules/testrestrules.cpp | 1 + tests/auto/restvendors/testrestvendors.cpp | 1 + 6 files changed, 6 insertions(+) diff --git a/tests/auto/restdeviceclasses/testrestdeviceclasses.cpp b/tests/auto/restdeviceclasses/testrestdeviceclasses.cpp index fade40b3..bfa05cfd 100644 --- a/tests/auto/restdeviceclasses/testrestdeviceclasses.cpp +++ b/tests/auto/restdeviceclasses/testrestdeviceclasses.cpp @@ -81,6 +81,7 @@ void TestRestDeviceClasses::initTestCase() config.port = 3333; config.sslEnabled = true; GuhCore::instance()->configuration()->setWebServerConfiguration(config); + qApp->processEvents(); } void TestRestDeviceClasses::getSupportedDevices() diff --git a/tests/auto/restdevices/testrestdevices.cpp b/tests/auto/restdevices/testrestdevices.cpp index 189a52e9..096b4881 100644 --- a/tests/auto/restdevices/testrestdevices.cpp +++ b/tests/auto/restdevices/testrestdevices.cpp @@ -90,6 +90,7 @@ void TestRestDevices::initTestCase() config.port = 3333; config.sslEnabled = true; GuhCore::instance()->configuration()->setWebServerConfiguration(config); + qApp->processEvents(); } void TestRestDevices::getConfiguredDevices() diff --git a/tests/auto/restlogging/testrestlogging.cpp b/tests/auto/restlogging/testrestlogging.cpp index 5bd09f90..19e388a0 100644 --- a/tests/auto/restlogging/testrestlogging.cpp +++ b/tests/auto/restlogging/testrestlogging.cpp @@ -74,6 +74,7 @@ void TestRestLogging::initTestCase() config.port = 3333; config.sslEnabled = true; GuhCore::instance()->configuration()->setWebServerConfiguration(config); + qApp->processEvents(); } void TestRestLogging::initLogs() diff --git a/tests/auto/restplugins/testrestplugins.cpp b/tests/auto/restplugins/testrestplugins.cpp index 983aa9b0..8c9e2abd 100644 --- a/tests/auto/restplugins/testrestplugins.cpp +++ b/tests/auto/restplugins/testrestplugins.cpp @@ -74,6 +74,7 @@ void TestRestPlugins::initTestCase() config.port = 3333; config.sslEnabled = true; GuhCore::instance()->configuration()->setWebServerConfiguration(config); + qApp->processEvents(); } void TestRestPlugins::getPlugins() diff --git a/tests/auto/restrules/testrestrules.cpp b/tests/auto/restrules/testrestrules.cpp index 4168491a..5ba5697a 100644 --- a/tests/auto/restrules/testrestrules.cpp +++ b/tests/auto/restrules/testrestrules.cpp @@ -95,6 +95,7 @@ void TestRestRules::initTestCase() config.port = 3333; config.sslEnabled = true; GuhCore::instance()->configuration()->setWebServerConfiguration(config); + qApp->processEvents(); } void TestRestRules::cleanupMockHistory() diff --git a/tests/auto/restvendors/testrestvendors.cpp b/tests/auto/restvendors/testrestvendors.cpp index 35caa582..3f9f1515 100644 --- a/tests/auto/restvendors/testrestvendors.cpp +++ b/tests/auto/restvendors/testrestvendors.cpp @@ -69,6 +69,7 @@ void TestRestVendors::initTestCase() config.port = 3333; config.sslEnabled = true; GuhCore::instance()->configuration()->setWebServerConfiguration(config); + qApp->processEvents(); } void TestRestVendors::getVendors()