diff options
author | Robert Griebl <robert.griebl@qt.io> | 2021-12-12 18:29:42 +0100 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2021-12-16 19:18:31 +0000 |
commit | 6b2bf719e04812fba625f7c49482c54b8bb8d8d4 (patch) | |
tree | bfbc22d3f4ec2cd8ef81b7130e18e94746c4a24a | |
parent | 892fdaa47b052afe366ed6a65749dc7ad7aceaf8 (diff) | |
download | qtapplicationmanager-6b2bf719e04812fba625f7c49482c54b8bb8d8d4.tar.gz |
Fix timeouts in the intents qml test
Change-Id: I46a28ead75ddeeec1fd2dcc9263b413e84642000
Reviewed-by: Dominik Holland <dominik.holland@qt.io>
(cherry picked from commit b01499c453b5da539900afed53eff9555e359330)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-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 }) |