mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-07 20:08:53 +00:00
Merge branch 'ticket/17296' into ticket/17296-master
This commit is contained in:
commit
e7d928d6ef
1 changed files with 4 additions and 3 deletions
|
@ -25,6 +25,10 @@ class phpbb_functional_session_page_update_test extends phpbb_functional_test_ca
|
|||
|
||||
$db = $this->db;
|
||||
|
||||
// Delete previous session info for admin user
|
||||
$sql = 'DELETE FROM ' . SESSIONS_TABLE . ' WHERE session_user_id = 2';
|
||||
$db->sql_query($sql);
|
||||
|
||||
$this->login();
|
||||
}
|
||||
|
||||
|
@ -32,9 +36,6 @@ class phpbb_functional_session_page_update_test extends phpbb_functional_test_ca
|
|||
{
|
||||
$db = $this->get_db();
|
||||
|
||||
// Sleep for 2 seconds to ensure we don't have session time race condition
|
||||
sleep(2);
|
||||
|
||||
// Request index page
|
||||
self::request('GET', 'index.php');
|
||||
$this->assertEquals(200, self::$client->getInternalResponse()->getStatusCode(), 'Failed asserting that status of index page is 200');
|
||||
|
|
Loading…
Add table
Reference in a new issue