Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#27665 closed Bug (duplicate)

More than one instance of Chrome locks up LiveServerTestCase

Reported by: Luke Plant Owned by: nobody
Component: Testing framework Version: 1.10
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


Example code:

from django.test import LiveServerTestCase
from selenium import webdriver

class TestChrome(LiveServerTestCase):

    def test(self):
        url = self.live_server_url
        driver1 = webdriver.Chrome()
        driver1.get(url)  # This 2nd get seems to be needed to trigger the bug
        driver2 = webdriver.Chrome()


This code was added to in an otherwise blank project (no views or anything necessary), and run using ./ test

Result: the second Chrome window simply hangs trying to load the URL.

Tested with:

Upgrading to Selenium 3 is not an option - so many things are broken (like any half-decent Firefox support, as far as I can tell).

I'm guessing this might be to do with Chrome holding open connections. If I close the first Chrome window, the second one then succeeds to load the page.

Change History (2)

comment:1 by Tim Graham, 7 years ago

Resolution: duplicate
Status: newclosed

#20238 is open to support multiple open connections in LiveServerTestCase. Can we consider this a duplicate of that?

comment:2 by Luke Plant, 7 years ago

That sounds good - thanks (assuming my guess about the cause is correct).

Note: See TracTickets for help on using tickets.
Back to Top