From 84f45d75ef208d42a2dd1ba1da573c6a6b750511 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20St=C3=BCrz?= Date: Thu, 28 Apr 2022 10:45:04 +0200 Subject: [PATCH] Stabalize tests and improve inactive timout test --- tests/resources/test-configuration.conf | 8 ++++---- tests/test-proxy/remoteproxytestsproxy.cpp | 2 ++ 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/tests/resources/test-configuration.conf b/tests/resources/test-configuration.conf index 80c5cc1..012ae62 100644 --- a/tests/resources/test-configuration.conf +++ b/tests/resources/test-configuration.conf @@ -3,10 +3,10 @@ name=test-nymea-remoteproxy writeLogs=false logFile=/var/log/nymea-remoteproxy.log monitorSocket=/tmp/nymea-remoteproxy-test.sock -jsonRpcTimeout=2000 -authenticationTimeout=1000 -inactiveTimeout=1500 -aloneTimeout=1500 +jsonRpcTimeout=10000 +authenticationTimeout=10000 +inactiveTimeout=5000 +aloneTimeout=10000 [SSL] certificate=:/test-certificate.crt diff --git a/tests/test-proxy/remoteproxytestsproxy.cpp b/tests/test-proxy/remoteproxytestsproxy.cpp index bbd274f..0582d7a 100644 --- a/tests/test-proxy/remoteproxytestsproxy.cpp +++ b/tests/test-proxy/remoteproxytestsproxy.cpp @@ -1147,6 +1147,8 @@ void RemoteProxyTestsProxy::inactiveTimeout() // Start the server startServer(); + m_configuration->setInactiveTimeout(4000); + RemoteProxyConnection *connection = new RemoteProxyConnection(QUuid::createUuid(), "Sleepy test client", this); connect(connection, &RemoteProxyConnection::sslErrors, this, &BaseTest::ignoreConnectionSslError);