﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
18913	Selenium admin_inlines test fails	Anssi Kääriäinen	nobody	"The admin_inlines tests are failing for me beginning with selenium versions 2.21.3 or later. The result is:
{{{
s..Es...........................
======================================================================
ERROR: tearDownClass (regressiontests.admin_inlines.tests.SeleniumFirefoxTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File ""/home/akaariai/Programming/django/tests/django/contrib/admin/tests.py"", line 24, in tearDownClass
    super(AdminSeleniumWebDriverTestCase, cls).tearDownClass()
  File ""/home/akaariai/Programming/django/tests/django/test/testcases.py"", line 1170, in tearDownClass
    cls.server_thread.join()
  File ""/home/akaariai/Programming/django/tests/django/test/testcases.py"", line 1094, in join
    self.httpd.shutdown()
  File ""/home/akaariai/Programming/django/tests/django/test/testcases.py"", line 985, in shutdown
    ""Failed to shutdown the live test server in 2 seconds. The ""
RuntimeError: Failed to shutdown the live test server in 2 seconds. The server might be stuck or generating a slow response.

----------------------------------------------------------------------
Ran 29 tests in 14.939s
}}}
I have tracked this down to something creating a request that takes more than 2 seconds to read. This request is generated so that it is in progress at shutdown time. Setting the timeout in the server teardown from 2 seconds to bigger will fix this issue, but it would be nice to understand what is generating the slow request.

With selenium 2.21.2 and before I get this from the tests:
{{{
sss...........................
----------------------------------------------------------------------
Ran 27 tests in 38.970s
}}}
Note that the tests skipped are different, and they take a _long_ time to get skipped...

This might be very much configuration dependant, so, here is my pip freeze:
{{{
Jinja2==2.6
MySQL-python==1.2.3
Pygments==1.5
Sphinx==1.1.3
argparse==1.2.1
cx-Oracle==5.1.2
distribute==0.6.24
docutils==0.9.1
ipdb==0.7
ipython==0.13
psycopg2==2.4.5
selenium==2.21.3
wsgiref==0.1.2
}}}

I am using Ubuntu 12.04, Firefox is version 15.0 from Ubuntu's repository."	Uncategorized	closed	Testing framework	dev	Normal	worksforme		jason@…	Unreviewed	0	0	0	0	0	0
