#27665: More than one instance of Chrome locks up LiveServerTestCase
---------------------------------------------+------------------------
               Reporter:  Luke Plant         |          Owner:  nobody
                   Type:  Bug                |         Status:  new
              Component:  Testing framework  |        Version:  1.10
               Severity:  Normal             |       Keywords:
           Triage Stage:  Unreviewed         |      Has patch:  0
    Needs documentation:  0                  |    Needs tests:  0
Patch needs improvement:  0                  |  Easy pickings:  0
                  UI/UX:  0                  |
---------------------------------------------+------------------------
 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)
         driver1.get(url)  # This 2nd get seems to be needed to trigger the
 bug

         driver2 = webdriver.Chrome()
         driver2.get(url)

         driver1.quit()
         driver2.quit()
 }}}
 This code was added to `tests.py` in an otherwise blank project (no views
 or anything necessary), and run using `./manage.py test`

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

 Tested with:
 * Django 1.10.4
 * Selenium 2.53.6
 * Chrome 55.0.2883.87 (Official Build) (64-bit)
 * ChromeDriver 2.27.440175 (9bc1d90b8bfa4dd181fbbf769a5eb5e575574320)

 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.

--
Ticket URL: <https://code.djangoproject.com/ticket/27665>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/054.022d1055bf6dacd117a0f1e557d87f94%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to