From 1e96e77858d05301fbb3e08cb4c7efdba1a2acf2 Mon Sep 17 00:00:00 2001 From: Mitch Curtis Date: Fri, 8 Aug 2025 15:30:11 +0800 Subject: [PATCH] tst_qquickanimations: bump defaultTryTimeout to 2 seconds 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 --- tests/auto/quick/qquickanimations/tst_qquickanimations.cpp | 2 ++ 1 file changed, 2 insertions(+) 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();