Update the default timeout for asserting downloaded files

This commit is contained in:
Michael Mintz 2020-09-15 17:17:53 -04:00
parent 0d9e27620f
commit a028f9ff1d
1 changed files with 2 additions and 2 deletions

View File

@ -2853,8 +2853,8 @@ class BaseCase(unittest.TestCase):
def assert_downloaded_file(self, file, timeout=None): def assert_downloaded_file(self, file, timeout=None):
""" Asserts that the file exists in the Downloads Folder. """ """ Asserts that the file exists in the Downloads Folder. """
if not timeout: if not timeout:
timeout = settings.SMALL_TIMEOUT timeout = settings.LARGE_TIMEOUT
if self.timeout_multiplier and timeout == settings.SMALL_TIMEOUT: if self.timeout_multiplier and timeout == settings.LARGE_TIMEOUT:
timeout = self.__get_new_timeout(timeout) timeout = self.__get_new_timeout(timeout)
start_ms = time.time() * 1000.0 start_ms = time.time() * 1000.0
stop_ms = start_ms + (timeout * 1000.0) stop_ms = start_ms + (timeout * 1000.0)