Thanks for the review. Here is the incremental diff.
{{{
=== modified file 'lib/lp/registry/windmill/tests/test_timeline_graph.py'
--- lib/lp/registry/windmill/tests/test_timeline_graph.py 2009-10-09 21:40:20 +0000
+++ lib/lp/registry/windmill/tests/test_timeline_graph.py 2009-10-09 22:07:54 +0000
@@ -26,7 +26,11 @@ option=u'style.display|none', timeout=u'8000')
link_xpath = '//div/a[@href="/firefox/trunk"]'
- for i in range(0, 5):
+
+ # waits.forElement() is called multiple times because there
+ # were sporadic errors where waits.forElement() would succeed but
+ # the following assertNode() would fail 5% of the time.
+ for i in range(5): self.client.waits.forElement(xpath=link_xpath) self.client.asserts.assertNode(xpath=link_xpath)
@@ -54,7 +58,11 @@ option=u'style.display|block', timeout=u'8000') self.client.waits.forElement(id=u'timeline-loading', timeout=u'20000')
- for i in range(0, 5):
+
+ # waits.forElementProperty() is called multiple times because there
+ # were sporadic errors where waits.forElement() would succeed but
+ # the following assertProperty() would fail 5% of the time.
+ for i in range(5): self.client.waits.forElementProperty( id=u'timeline-loading', option=u'style.display|none')
}}}
Hi Barry,
Thanks for the review. Here is the incremental diff.
{{{ registry/ windmill/ tests/test_ timeline_ graph.py' registry/ windmill/ tests/test_ timeline_ graph.py 2009-10-09 21:40:20 +0000 registry/ windmill/ tests/test_ timeline_ graph.py 2009-10-09 22:07:54 +0000
option= u'style. display| none',
timeout= u'8000' ) a[@href= "/firefox/ trunk"] '
self. client. waits.forElemen t(xpath= link_xpath)
self. client. asserts. assertNode( xpath=link_ xpath)
=== modified file 'lib/lp/
--- lib/lp/
+++ lib/lp/
@@ -26,7 +26,11 @@
link_xpath = '//div/
- for i in range(0, 5):
+
+ # waits.forElement() is called multiple times because there
+ # were sporadic errors where waits.forElement() would succeed but
+ # the following assertNode() would fail 5% of the time.
+ for i in range(5):
@@ -54,7 +58,11 @@
option= u'style. display| block',
timeout= u'8000' )
self. client. waits.forElemen t(id=u' timeline- loading' , timeout=u'20000') tProperty( ) is called multiple times because there
self. client. waits.forElemen tProperty(
id=u' timeline- loading' ,
option= u'style. display| none')
- for i in range(0, 5):
+
+ # waits.forElemen
+ # were sporadic errors where waits.forElement() would succeed but
+ # the following assertProperty() would fail 5% of the time.
+ for i in range(5):
}}}