[pitivi] dogtail tests: Add some sleeps to prevent false alarms on some tests



commit 498c76ae23f88476f03c31d05db8d18988ba3bb1
Author: Jean-François Fortin Tam <nekohayo gmail com>
Date:   Thu Dec 12 13:27:23 2013 -0500

    dogtail tests: Add some sleeps to prevent false alarms on some tests

 tests/dogtail_scripts/test_project.py  |    2 ++
 tests/dogtail_scripts/test_timeline.py |    1 +
 2 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/tests/dogtail_scripts/test_project.py b/tests/dogtail_scripts/test_project.py
index f9c93dc..b20f67c 100644
--- a/tests/dogtail_scripts/test_project.py
+++ b/tests/dogtail_scripts/test_project.py
@@ -248,6 +248,7 @@ class ProjectPropertiesTest(HelpFunc):
         # Go figure why, this one takes much longer (~27 secs) to appear:
         self.assertTrue(self.wait_for_file(backup_path, time_out=35), "Backup not created")
         self.tearDown(clean=False, kill=True)
+        sleep(0.5)
 
         # After another "crash", try loading from the backup.
         self.setUp()
@@ -274,6 +275,7 @@ class ProjectPropertiesTest(HelpFunc):
         # and the user should be prompted again on the next startup
         self.tearDown(clean=False, kill=True)
         timestamp = os.path.getmtime(backup_path)
+        sleep(0.5)
         self.setUp()
         welcome_dialog = self.pitivi.child(name="Welcome", roleName="frame", recursive=False)
         welcome_dialog.child(name=filename).doubleClick()
diff --git a/tests/dogtail_scripts/test_timeline.py b/tests/dogtail_scripts/test_timeline.py
index a155e8f..5e0d0fc 100644
--- a/tests/dogtail_scripts/test_timeline.py
+++ b/tests/dogtail_scripts/test_timeline.py
@@ -139,6 +139,7 @@ class TimelineTest(HelpFunc):
         sleep(1)
         dogtail.rawinput.click(tpos[0] + 250 * adj, tpos[1] + 50)
         #Check if we selected transition
+        sleep(0.5)
         iconlist = self.transitions.child(roleName="layered pane")
         self.assertTrue(iconlist.sensitive)
         iconlist.children[-2].select()


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]