From 56948912dd01b67c9f4dde0f5693022b23eb7c64 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20St=C3=BCrz?= Date: Tue, 3 May 2022 15:02:46 +0200 Subject: [PATCH] Add more timespace between timeout and background timeouts to stabalize tests --- tests/test-proxy/remoteproxytestsproxy.cpp | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/tests/test-proxy/remoteproxytestsproxy.cpp b/tests/test-proxy/remoteproxytestsproxy.cpp index 0582d7a..8c6a324 100644 --- a/tests/test-proxy/remoteproxytestsproxy.cpp +++ b/tests/test-proxy/remoteproxytestsproxy.cpp @@ -1116,16 +1116,12 @@ void RemoteProxyTestsProxy::jsonRpcTimeout() // Start the server startServer(); - m_configuration->setAuthenticationTimeout(3000); - m_configuration->setJsonRpcTimeout(1000); - m_configuration->setInactiveTimeout(2000); - // Configure result (authentication takes longer than json rpc timeout m_mockAuthenticator->setExpectedAuthenticationError(); - m_mockAuthenticator->setTimeoutDuration(4000); - m_configuration->setAuthenticationTimeout(4000); + m_mockAuthenticator->setTimeoutDuration(10000); + m_configuration->setAuthenticationTimeout(10000); m_configuration->setJsonRpcTimeout(1000); - m_configuration->setInactiveTimeout(2000); + m_configuration->setInactiveTimeout(10000); // Create request QVariantMap params; @@ -1147,7 +1143,7 @@ void RemoteProxyTestsProxy::inactiveTimeout() // Start the server startServer(); - m_configuration->setInactiveTimeout(4000); + m_configuration->setInactiveTimeout(1000); RemoteProxyConnection *connection = new RemoteProxyConnection(QUuid::createUuid(), "Sleepy test client", this); connect(connection, &RemoteProxyConnection::sslErrors, this, &BaseTest::ignoreConnectionSslError);