Destroy selenium before live server threads.
Ensure that selenium quits before the live server thread to prevent occasional hangs when killing the live server.
This commit is contained in:
parent
5a424c2393
commit
2c6079775e
|
@ -31,9 +31,9 @@ class AdminSeleniumWebDriverTestCase(StaticLiveServerCase):
|
|||
|
||||
@classmethod
|
||||
def _tearDownClassInternal(cls):
|
||||
super(AdminSeleniumWebDriverTestCase, cls)._tearDownClassInternal()
|
||||
if hasattr(cls, 'selenium'):
|
||||
cls.selenium.quit()
|
||||
super(AdminSeleniumWebDriverTestCase, cls)._tearDownClassInternal()
|
||||
|
||||
def wait_until(self, callback, timeout=10):
|
||||
"""
|
||||
|
|
Loading…
Reference in New Issue