[django/django] 351a06: Fixed a timing edge case in the RelatedFieldWidget...

3 views
Skip to first unread message

GitHub

unread,
Sep 14, 2013, 7:13:32 PM9/14/13
to django-...@googlegroups.com
Branch: refs/heads/master
Home: https://github.com/django/django
Commit: 351a061497b262e2ef994552d04c31b63d801179
https://github.com/django/django/commit/351a061497b262e2ef994552d04c31b63d801179
Author: Florian Apolloner <flo...@apolloner.eu>
Date: 2013-09-14 (Sat, 14 Sep 2013)

Changed paths:
M tests/admin_widgets/tests.py

Log Message:
-----------
Fixed a timing edge case in the RelatedFieldWidgetSeleniumFirefoxTests.

By settings an implicit wait timeout for the find_* methods we can wait
till the javascript code add the new option to the DOM.

See http://ci.djangoproject.com/job/Django/database=mysql_gis,python=python3.3/3174/testReport/junit/admin_widgets.tests/RelatedFieldWidgetSeleniumFirefoxTests/test_foreign_key_using_to_field/

Stacktrace:
Traceback (most recent call last):
File "/var/lib/jenkins/jobs/Django/workspace/database/mysql_gis/python/python3.3/tests/admin_widgets/tests.py", line 1060, in test_foreign_key_using_to_field
self.assertEqual(username_value, new_option.get_attribute('value'))
AssertionError: 'newuser' != 'testser'
- newuser
+ testser



Reply all
Reply to author
Forward
0 new messages