#7516 Timing may case test_set_password_sets_last_updated to fail

v1.2.1
closed
General
2015-08-20
2014-07-01
No

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

Discussion

  • Dave Brondsema

    Dave Brondsema - 2014-12-15
    • labels: bitesize --> bitesize, sf-current
     
  • Dave Brondsema

    Dave Brondsema - 2014-12-15
    • labels: bitesize, sf-current --> bitesize, sf-current, sf-1
     
  • Heith Seewald - 2014-12-19

    I'll work on this next week.

     
  • Igor Bondarenko - 2015-01-09
    • Owner: Anonymous --> Igor Bondarenko
    • Labels: bitesize, sf-current, sf-1 --> bitesize, 42cc, sf-current, sf-1
    • Status: open --> in-progress
     
  • Igor Bondarenko - 2015-01-09

    Closed #706. ib/7516

     
  • Igor Bondarenko - 2015-01-09
    • status: in-progress --> review
     
  • Dave Brondsema

    Dave Brondsema - 2015-01-09
    • status: review --> closed
    • Reviewer: Dave Brondsema
     
  • Dave Brondsema

    Dave Brondsema - 2015-01-12
    • labels: bitesize, 42cc, sf-current, sf-1 --> bitesize, 42cc, sf-1
     
  • Igor Bondarenko - 2015-02-18
    • Milestone: unreleased --> asf_release_1.2.1
     

Log in to post a comment.