aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto
diff options
context:
space:
mode:
authorMitch Curtis <mitch.curtis@qt.io>2025-08-08 15:30:11 +0800
committerMitch Curtis <mitch.curtis@qt.io>2025-08-08 16:46:38 +0800
commit1e96e77858d05301fbb3e08cb4c7efdba1a2acf2 (patch)
treeeca6e6b6024110a3a67afa1e2f5c563621ee7a15 /tests/auto
parent1224a1c89f07b1a1f42cc67aa707e4c7c0c862e5 (diff)
tst_qquickanimations: bump defaultTryTimeout to 2 secondsHEADdev
e7b90cfc31e9b651fd4895944f84d78aa637f120 changed the default to 1 second, which results in confusing failures where 1 second is not enough... but it also was (QTBUG-139036). Many animations are 1 second long, so bump the default timeout to 2 seconds. Task-number: QTBUG-138662 Change-Id: I9b38e6cdbecda17cc2be65e93be4bdc7b8b0a529 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'tests/auto')
-rw-r--r--tests/auto/quick/qquickanimations/tst_qquickanimations.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/auto/quick/qquickanimations/tst_qquickanimations.cpp b/tests/auto/quick/qquickanimations/tst_qquickanimations.cpp
index c6c844993a..ea64eb842d 100644
--- a/tests/auto/quick/qquickanimations/tst_qquickanimations.cpp
+++ b/tests/auto/quick/qquickanimations/tst_qquickanimations.cpp
@@ -40,6 +40,8 @@ private slots:
{
QQmlEngine engine; // ensure types are registered
QQmlDataTest::initTestCase();
+ // 1 second is not quite enough, since many animations are 1 second long.
+ QTest::defaultTryTimeout.store(std::chrono::seconds(2));
}
void simpleProperty();