#23792: Random test failure of TestCookieStorage.test_reset_cookie
--------------------------------------+--------------------
     Reporter:  tchaumeny             |      Owner:  nobody
         Type:  Cleanup/optimization  |     Status:  new
    Component:  Uncategorized         |    Version:  master
     Severity:  Normal                |   Keywords:
 Triage Stage:  Unreviewed            |  Has patch:  1
Easy pickings:  0                     |      UI/UX:  0
--------------------------------------+--------------------
 This test fails randomly, as seen in http://djangoci.com/job/django-pull-
 
requests/1528/database=postgres,python=python3.4/testReport/junit/django.contrib.formtools.tests.wizard.test_cookiestorage/TestCookieStorage/test_reset_cookie/

 After some investigation, I can reproduce the failure by adding a
 `time.sleep(1)` after this line
 
https://github.com/django/django/blob/88b2a20f047347da86f448fe09a56251d29e4168/django/core/signing.py#L183.

 I suggest the introduction of a context manager `freeze_time` to handle
 this issue (there is also a recurring pattern for that in Django test
 suite).

--
Ticket URL: <https://code.djangoproject.com/ticket/23792>
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/052.4cd80241c7b2652805c161b690f5dd7f%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to