[gnome-boxes] tests: Check snapshots more frequently
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] tests: Check snapshots more frequently
- Date: Fri, 19 Jun 2015 14:23:39 +0000 (UTC)
commit 70f1f68ccb4959976534d72cd9a26f945e5a2220
Author: Vladimir Benes <benesv email cz>
Date: Thu Jun 18 22:48:32 2015 +0200
tests: Check snapshots more frequently
Now that we wait much longer for snapshot creation, better save as
much time as possible between checks for snapshot creation.
https://bugzilla.gnome.org/show_bug.cgi?id=751042
tests/steps/snapshot.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/tests/steps/snapshot.py b/tests/steps/snapshot.py
index fe18181..592e4ec 100644
--- a/tests/steps/snapshot.py
+++ b/tests/steps/snapshot.py
@@ -20,9 +20,9 @@ def add_snapshot(context, name):
wait = 0
while len(context.app.findChildren(lambda x: x.roleName == 'toggle button' and x.showing \
and x.sensitive and x.name ==
'Menu')) == 0:
- sleep(1)
+ sleep(0.25)
wait += 1
- if wait == 20:
+ if wait == 80:
raise Exception("Timeout: Node %s wasn't found showing" %name)
sleep(1)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]