From c3199425c406397093ed32c15098693b9ad443d1 Mon Sep 17 00:00:00 2001 From: Micah Lee Date: Fri, 8 Nov 2019 17:27:17 +0800 Subject: [PATCH] Make singleShot wait times 0 ms to speed up the tests --- tests2/test_gui_tabs.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests2/test_gui_tabs.py b/tests2/test_gui_tabs.py index 2ddbd0e1..eada8176 100644 --- a/tests2/test_gui_tabs.py +++ b/tests2/test_gui_tabs.py @@ -75,7 +75,7 @@ class TestTabs(GuiBaseTest): ) # Prepare to reject the dialog - QtCore.QTimer.singleShot(200, tab.close_dialog.reject_button.click) + QtCore.QTimer.singleShot(0, tab.close_dialog.reject_button.click) # Close tab self.gui.tabs.tabBar().tabButton(0, QtWidgets.QTabBar.RightSide).click() @@ -85,7 +85,7 @@ class TestTabs(GuiBaseTest): self.assertTrue(tab.get_mode().isVisible()) # Prepare to accept the dialog - QtCore.QTimer.singleShot(200, tab.close_dialog.accept_button.click) + QtCore.QTimer.singleShot(0, tab.close_dialog.accept_button.click) # Close tab self.gui.tabs.tabBar().tabButton(0, QtWidgets.QTabBar.RightSide).click() @@ -105,7 +105,7 @@ class TestTabs(GuiBaseTest): self.assertTrue(os.path.exists(tab.settings.filename)) # Prepare to reject the dialog - QtCore.QTimer.singleShot(200, tab.close_dialog.reject_button.click) + QtCore.QTimer.singleShot(0, tab.close_dialog.reject_button.click) # Close tab self.gui.tabs.tabBar().tabButton(0, QtWidgets.QTabBar.RightSide).click() @@ -118,7 +118,7 @@ class TestTabs(GuiBaseTest): self.assertTrue(os.path.exists(tab.settings.filename)) # Prepare to accept the dialog - QtCore.QTimer.singleShot(200, tab.close_dialog.accept_button.click) + QtCore.QTimer.singleShot(0, tab.close_dialog.accept_button.click) # Close tab self.gui.tabs.tabBar().tabButton(0, QtWidgets.QTabBar.RightSide).click() @@ -263,7 +263,7 @@ class TestTabs(GuiBaseTest): ) # Prepare to reject the dialog - QtCore.QTimer.singleShot(200, self.gui.close_dialog.reject_button.click) + QtCore.QTimer.singleShot(0, self.gui.close_dialog.reject_button.click) # Close the window self.gui.close()