forked from qt-creator/qt-creator
QmlProfiler: Reduce retry params for testConnectionFailure()
This greatly reduces the test execution time, hopefully avoiding the test function timeouts. As we know that all the connections fail, a 1ms interval should be enough and retrying twice should be enough to exercise the retry path. Change-Id: I24e61aa1957313dc16b7e46f7a7de7ae483e82dc Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -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()
|
||||
|
Reference in New Issue
Block a user