- **status**: review --> closed
- **Reviewer**: Dave Brondsema


---

** [tickets:#7516] Timing may case test_set_password_sets_last_updated to fail**

**Status:** closed
**Milestone:** unreleased
**Labels:** bitesize 42cc sf-current sf-1 
**Created:** Tue Jul 01, 2014 03:14 PM UTC by Dave Brondsema
**Last Updated:** Fri Jan 09, 2015 04:32 PM UTC
**Owner:** Igor Bondarenko

This can fail, sometimes.  I think its because the timings can be too close, 
since it relies on current `utcnow()` values.

~~~~
FAIL: 
allura.tests.unit.test_ldap_auth_provider.TestLdapAuthenticationProvider.test_set_password_sets_last_updated
----------------------------------------------------------------------
Traceback (most recent call last):
  File 
"/var/lib/jenkins/tmp/allura-venv/lib/python2.7/site-packages/nose/case.py", 
line 197, in runTest
    self.test(*self.arg)
  File "/var/lib/jenkins/tmp/allura-venv/lib/python2.7/site-packages/mock.py", 
line 1201, in patched
    return func(*args, **keywargs)
  File 
"<http://jenkins.sdot.me/job/allura/ws/Allura/allura/tests/unit/test_ldap_auth_provider.py";,>
 line 117, in test_set_password_sets_last_updated
    assert_true(user.last_password_updated < now2)
AssertionError: False is not true
~~~~


---

Sent from forge-allura.apache.org because [email protected] is subscribed 
to https://forge-allura.apache.org/p/allura/tickets/

To unsubscribe from further messages, a project admin can change settings at 
https://forge-allura.apache.org/p/allura/admin/tickets/options.  Or, if this is 
a mailing list, you can unsubscribe from the mailing list.

Reply via email to