From 5545718086faec9b8ce7e3340fecfec2e2deba8e Mon Sep 17 00:00:00 2001 From: bgbsww <120601209+bgbsww@users.noreply.github.com> Date: Sat, 29 Jun 2024 19:14:37 -0400 Subject: [PATCH] =?UTF-8?q?Addons:=20tweak=20gui=5Fmocks=20dialog=20timing?= =?UTF-8?q?=20to=20avoid=20leaving=20windows=20after=20=E2=80=A6=20(#15022?= =?UTF-8?q?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Addons: tweak gui_mocks dialog timing to avoid leaving windows after testing. * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- src/Mod/AddonManager/AddonManagerTest/gui/gui_mocks.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Mod/AddonManager/AddonManagerTest/gui/gui_mocks.py b/src/Mod/AddonManager/AddonManagerTest/gui/gui_mocks.py index 7ce9d15106..7d08e7739a 100644 --- a/src/Mod/AddonManager/AddonManagerTest/gui/gui_mocks.py +++ b/src/Mod/AddonManager/AddonManagerTest/gui/gui_mocks.py @@ -45,7 +45,9 @@ class DialogInteractor(QtCore.QObject): self.execution_counter = 0 self.timer = QtCore.QTimer() self.timer.timeout.connect(self.run) - self.timer.start(10) + self.timer.start( + 1 + ) # At 10 this occasionally left open dialogs; less than 1 produced failed tests def run(self): widget = QtWidgets.QApplication.activeModalWidget()