Skip to content

Commit

Permalink
e2e: fix for driver creation error
Browse files Browse the repository at this point in the history
  • Loading branch information
yevh-berdnyk committed Dec 21, 2023
1 parent 5ec5838 commit 388493c
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions test/appium/tests/base_test_case.py
Original file line number Diff line number Diff line change
Expand Up @@ -415,12 +415,12 @@ def teardown_class(cls):
session_id = driver.session_id
try:
sauce.jobs.update_job(username=sauce_username, job_id=session_id, name=cls.__name__)
except (RemoteDisconnected, SauceException, requests.exceptions.ConnectionError):
pass
except (RemoteDisconnected, SauceException, requests.exceptions.ConnectionError) as e:
raise e
try:
driver.quit()
except WebDriverException:
pass
except WebDriverException as e:
raise e
url = 'https://api.%s/rest/v1/%s/jobs/%s/assets/%s' % (apibase, sauce_username, session_id, "log.json")
try:
WebDriverWait(driver, 60, 2).until(lambda _: requests_session.get(url).status_code == 200)
Expand All @@ -433,10 +433,10 @@ def teardown_class(cls):
test.testruns[-1].first_commands[session_id] = commands.index(command) + 1
except KeyError:
continue
except (RemoteDisconnected, requests.exceptions.ConnectionError, TimeoutException):
pass
except AttributeError:
pass
except (RemoteDisconnected, requests.exceptions.ConnectionError, TimeoutException) as e:
raise e
except AttributeError as e:
raise e
finally:
try:
cls.loop.close()
Expand Down

0 comments on commit 388493c

Please sign in to comment.