summaryrefslogtreecommitdiff
path: root/uitest
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2016-05-07 18:45:43 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2016-06-18 17:02:11 +0200
commit6d1693edfa9bd9ec154b8faf5463511d618d0df4 (patch)
tree340c44d1f8940fc720d78b5763075131c271d0e7 /uitest
parent4e1da3d42f3a9746664227ca38302ed4b8e6f201 (diff)
uitest: use 0.1 second sleeps
That improves the performance significantly. Change-Id: I5ef4f9a6f3d5839c042b6778e0e3b315f9c4df84
Diffstat (limited to 'uitest')
-rw-r--r--uitest/uitest_helper.py20
1 files changed, 10 insertions, 10 deletions
diff --git a/uitest/uitest_helper.py b/uitest/uitest_helper.py
index 2aaea7c9b88f..3c816c08af23 100644
--- a/uitest/uitest_helper.py
+++ b/uitest/uitest_helper.py
@@ -21,10 +21,10 @@ class UITest(object):
time_ = 0
while time_ < 30:
if event.executed:
- time.sleep(1)
+ time.sleep(0.1)
return
- time_ += 1
- time.sleep(1)
+ time_ += 0.1
+ time.sleep(0.1)
# report a failure here
print("failure execute modal dialog")
@@ -35,10 +35,10 @@ class UITest(object):
time_ = 0
while time_ < 30:
if event.executed:
- time.sleep(1)
+ time.sleep(0.1)
return
- time_ += 1
- time.sleep(1)
+ time_ += 0.1
+ time.sleep(0.11)
# report a failure here
print("failure execute modeless dialog")
@@ -52,8 +52,8 @@ class UITest(object):
while time_ < 30:
if event.executed:
return
- time_ += 1
- time.sleep(1)
+ time_ += 0.1
+ time.sleep(0.1)
print("failure doc in start center")
@@ -72,7 +72,7 @@ class UITest(object):
elif event.hasExecuted("OnViewClosed"):
return
- time_ += 1
- time.sleep(1)
+ time_ += 0.1
+ time.sleep(0.1)
# vim:set shiftwidth=4 softtabstop=4 expandtab: */