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:
John Chilton
2018-03-23 10:21:57 -04:00
parent 45a541f5c7
commit 8ace245720
+4 -1
View File
@@ -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()