From 27ef24601ca1147cfa51990a7460d4f3ac49e829 Mon Sep 17 00:00:00 2001 From: John Chilton Date: Mon, 25 Sep 2017 09:16:25 -0400 Subject: [PATCH] Fix typo. --- test/galaxy_selenium/navigates_galaxy.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/galaxy_selenium/navigates_galaxy.py b/test/galaxy_selenium/navigates_galaxy.py index b7a22a63042..082f83b29d5 100644 --- a/test/galaxy_selenium/navigates_galaxy.py +++ b/test/galaxy_selenium/navigates_galaxy.py @@ -35,7 +35,7 @@ class NullTourCallback(object): pass -def excepion_seems_to_indicate_transition(e): +def exception_seems_to_indicate_transition(e): """True if exception seems to indicate the page state is transitioning. Galaxy features many different transition effects that change the page state over time. @@ -52,7 +52,7 @@ def excepion_seems_to_indicate_transition(e): return exception_indicates_stale_element(e) or exception_indicates_not_clickable(e) -def retry_call_during_transitions(f, attempts=RETRY_DURING_TRANSITIONS_ATTEMPTS_DEFAULT, sleep=RETRY_DURING_TRANSITIONS_SLEEP_DEFAULT, exception_check=excepion_seems_to_indicate_transition): +def retry_call_during_transitions(f, attempts=RETRY_DURING_TRANSITIONS_ATTEMPTS_DEFAULT, sleep=RETRY_DURING_TRANSITIONS_SLEEP_DEFAULT, exception_check=exception_seems_to_indicate_transition): previous_attempts = 0 while True: try: @@ -68,7 +68,7 @@ def retry_call_during_transitions(f, attempts=RETRY_DURING_TRANSITIONS_ATTEMPTS_ previous_attempts += 1 -def retry_during_transitions(f, attempts=RETRY_DURING_TRANSITIONS_ATTEMPTS_DEFAULT, sleep=RETRY_DURING_TRANSITIONS_SLEEP_DEFAULT, exception_check=excepion_seems_to_indicate_transition): +def retry_during_transitions(f, attempts=RETRY_DURING_TRANSITIONS_ATTEMPTS_DEFAULT, sleep=RETRY_DURING_TRANSITIONS_SLEEP_DEFAULT, exception_check=exception_seems_to_indicate_transition): @wraps(f) def _retry(*args, **kwds):