Increased timeouts during tests.

master
Pacman Ghost 4 years ago
parent 6d06fdc082
commit 56dbac1232
  1. 4
      vasl_templates/webapp/tests/utils.py

@ -528,7 +528,9 @@ def _get_clipboard() :
def wait_for( timeout, func ):
"""Wait for a condition to become true."""
if os.name == "nt":
timeout *= 2 # Selenium runs pretty slow on Windows :-/
timeout *= 5 # Selenium runs pretty slow on Windows :-/
else:
timeout *= 2
start_time = time.time()
while True:
if func():

Loading…
Cancel
Save