diff --git a/src/plugins/qmlprofiler/tests/qmlprofilerclientmanager_test.cpp b/src/plugins/qmlprofiler/tests/qmlprofilerclientmanager_test.cpp index cd9b821ff7b..e565619de1a 100644 --- a/src/plugins/qmlprofiler/tests/qmlprofilerclientmanager_test.cpp +++ b/src/plugins/qmlprofiler/tests/qmlprofilerclientmanager_test.cpp @@ -115,6 +115,7 @@ void softAssertMessageHandler(QtMsgType type, const QMessageLogContext &context, void QmlProfilerClientManagerTest::testConnectionFailure() { + clientManager.setRetryParams(1, 2); // This triggers a lot of soft asserts. We test that it still doesn't crash and stays in a // consistent state. QByteArray fatalAsserts = qgetenv("QTC_FATAL_ASSERTS"); @@ -152,6 +153,7 @@ void QmlProfilerClientManagerTest::testConnectionFailure() clientManager.disconnectFromServer(); qputenv("QTC_FATAL_ASSERTS", fatalAsserts); + clientManager.setRetryParams(10, 10); } void QmlProfilerClientManagerTest::testUnresponsiveTcp()