Commit 2c607977 authored by Florian Apolloner's avatar Florian Apolloner
Browse files

Destroy selenium before live server threads.

Ensure that selenium quits before the live server thread to
prevent occasional hangs when killing the live server.
parent 5a424c23
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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):
        """