diff options
author | Robert Griebl <robert.griebl@qt.io> | 2021-12-12 18:29:42 +0100 |
---|---|---|
committer | Robert Griebl <robert.griebl@qt.io> | 2021-12-16 19:44:02 +0100 |
commit | b01499c453b5da539900afed53eff9555e359330 (patch) | |
tree | 77376af3a4ce7107e0b89c15a50bf834e6b7d826 /tests/auto | |
parent | d3ecedc2ccb228f9d125ab4870cf1a36b60fc012 (diff) | |
download | qtapplicationmanager-b01499c453b5da539900afed53eff9555e359330.tar.gz |
Fix timeouts in the intents qml test
Pick-to: 6.2
Change-Id: I46a28ead75ddeeec1fd2dcc9263b413e84642000
Reviewed-by: Dominik Holland <dominik.holland@qt.io>
Diffstat (limited to 'tests/auto')
-rw-r--r-- | tests/auto/qml/intents/tst_intents.qml | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/auto/qml/intents/tst_intents.qml b/tests/auto/qml/intents/tst_intents.qml index 2caccfcb..c2badd3e 100644 --- a/tests/auto/qml/intents/tst_intents.qml +++ b/tests/auto/qml/intents/tst_intents.qml @@ -138,7 +138,7 @@ TestCase { {tag: "custom-error", intentId: "custom-error", appId: "intents1", succeeding: false, errorMessage: "custom error" }, {tag: "cannot-start", intentId: "cannot-start-intent", appId: "cannot-start", succeeding: false, - errorMessage: /Starting handler application timed out after .*/ }, + errorMessage: /Starting handler application timed out after .*/, isTimeout: true }, ]; } @@ -154,7 +154,10 @@ TestCase { var req = IntentClient.sendIntentRequest(data.intentId, data.appId, params) verify(req) requestSpy.target = req - tryCompare(requestSpy, "count", 1, 1000) + let requestTimeout = 1000 + if (data.isTimeout) + requestTimeout *= 10 + tryCompare(requestSpy, "count", 1, requestTimeout) compare(req.succeeded, data.succeeding) if (req.succeeded) { compare(req.result, { "from": data.appId, "in": params }) |