Bug 1375637 - Make test_async_script_timeout less likely to fail. r?automatedtester
By increasing the duration before setTimeout fires the callback and
the execute_async_script call returns control to the user we are
less likely that there is a race condition between the relatively
short 100 ms interruption time.
MozReview-Commit-ID: BVKRiU7a2gK
--- a/testing/marionette/harness/marionette_harness/tests/unit/test_execute_script.py
+++ b/testing/marionette/harness/marionette_harness/tests/unit/test_execute_script.py
@@ -390,17 +390,17 @@ class TestExecuteChrome(WindowManagerMix
finally:
self.close_all_windows()
def test_async_script_timeout(self):
with self.assertRaises(errors.ScriptTimeoutException):
self.marionette.execute_async_script("""
var cb = arguments[arguments.length - 1];
- setTimeout(function() { cb() }, 250);
+ setTimeout(function() { cb() }, 2500);
""", script_timeout=100)
def test_lasting_side_effects(self):
pass
def test_return_web_element(self):
pass