mirror of
https://github.com/django/django.git
synced 2025-10-26 15:16:09 +00:00
Fixed #21227 -- Added workaround for selenium test failures
Added a refresh() before quit() in the selenium tests, since this solves the problem of spurious test failures in some environments.
This commit is contained in:
committed by
Tim Graham
parent
43569647ab
commit
08c9ab5a0f
@@ -32,6 +32,7 @@ class AdminSeleniumWebDriverTestCase(StaticLiveServerCase):
|
||||
@classmethod
|
||||
def _tearDownClassInternal(cls):
|
||||
if hasattr(cls, 'selenium'):
|
||||
cls.selenium.refresh() # see ticket #21227
|
||||
cls.selenium.quit()
|
||||
super(AdminSeleniumWebDriverTestCase, cls)._tearDownClassInternal()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user