Sometimes this assertion fails on Testbot:

1st password change: bbbbbb	Other	password_policy_expiration.test	178	PasswordExpiration->testExpirationConstraint()

I suspect it is a timing problem.

Comments

aohrvetpv’s picture

Status: Active » Needs review
StatusFileSize
new511 bytes

Let's try to reproduce the failure first.

Status: Needs review » Needs work

The last submitted patch, 1: dummy_patch_to_trigger_tests.patch, failed testing.

aohrvetpv’s picture

Status: Needs work » Needs review
StatusFileSize
new425 bytes

Reproduced. Now let's try to fix.

Hypothesis #1 is test executes so fast on Testbot that some requests after a user is blocked occur on the same second the user was blocked.

aohrvetpv’s picture

The last submitted patch, 1: dummy_patch_to_trigger_tests.patch, failed testing.

The last submitted patch, 1: dummy_patch_to_trigger_tests.patch, failed testing.

aohrvetpv’s picture

#3: 0/17 failures
unmodified: 3/15 failures

So it seems like #3 might fix the intermittent test failures.

  • AohRveTPV committed 4ae1039 on 7.x-1.x
    Issue #2454501 by AohRveTPV: Intermittent expiration test failures
    
aohrvetpv’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.