Commit 760292ee authored by Dries's avatar Dries

Issue #2017217 by alexpott: Fixed Random failure on UserPasswordResetTest.

parent b537ccd5
...@@ -39,6 +39,14 @@ public function setUp() { ...@@ -39,6 +39,14 @@ public function setUp() {
$this->account = user_load($account->uid); $this->account = user_load($account->uid);
$this->drupalLogout(); $this->drupalLogout();
// Set the last login time that is used to generate the one-time link so
// that it is definitely over a second ago.
$account->login = REQUEST_TIME - mt_rand(10, 100000);
db_update('users')
->fields(array('login' => $account->login))
->condition('uid', $account->uid)
->execute();
} }
/** /**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment