Skip to content

Commit 3ad1333

Browse files
authored
Merge pull request #193 from iMattPro/fix-tests
Update tests
2 parents a333ea4 + 169bb77 commit 3ad1333

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/merge-master-to-develop.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,4 +59,5 @@ jobs:
5959
if git rev-parse -q --verify MERGE_HEAD > /dev/null; then
6060
git merge --abort
6161
fi
62+
exit 1
6263
fi

tests/functional/viewonline_test.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,14 @@ public function test_viewonline_setup()
4848
public function test_viewonline_check($page_title)
4949
{
5050
// Create user1 and send them to the Viewonline
51+
self::$client->restart();
5152
$this->create_user('user1');
5253
$this->login('user1');
54+
// PHP goes faster than DBMS, make sure session data got written to the database.
55+
sleep(1);
5356
$crawler = self::request('GET', "viewonline.php?sid={$this->sid}");
5457

55-
// Is admin still viewing the test page
58+
// Is admin still viewing the test page?
5659
self::assertStringContainsString('admin', $crawler->filter('#page-body table.table1')->text());
5760

5861
$session_entries = $crawler->filter('#page-body table.table1 tr')->count();

0 commit comments

Comments
 (0)