mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-10-24 12:13:33 +08:00
Ignore seemingly harmless error when tearing down Selenium tests.
Causes otherwise passing tests to fail for not particular reason. Cannot find a Selenium issue for this but it has been reported on in their IRC - seems like just a very rare, transient issue. xref https://jenkins.galaxyproject.org/job/docker-selenium/1830/testReport/junit/selenium_tests.test_saved_histories/SavedHistoriesTestCase/test_delete_and_undelete_history/
This commit is contained in:
@@ -298,7 +298,10 @@ class SeleniumTestCase(FunctionalTestCase, NavigatesGalaxy, UsesApiTestCaseMixin
|
||||
try:
|
||||
self.driver.close()
|
||||
except Exception as e:
|
||||
exception = e
|
||||
if "cannot kill Chrome" in str(e):
|
||||
print("Ignoring likely harmless error in Selenium shutdown %s" % e)
|
||||
else:
|
||||
exception = e
|
||||
|
||||
try:
|
||||
self.display.stop()
|
||||
|
||||
Reference in New Issue
Block a user