mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 05:50:42 +02:00
[ticket/10103] Assert with messages.
PHPBB3-10103
This commit is contained in:
@@ -77,7 +77,7 @@ class phpbb_lock_flock_test extends phpbb_test_case
|
|||||||
$ok = $lock->acquire();
|
$ok = $lock->acquire();
|
||||||
$delta = time() - $start;
|
$delta = time() - $start;
|
||||||
$this->assertTrue($ok);
|
$this->assertTrue($ok);
|
||||||
$this->assertGreaterThan(0.5, $delta);
|
$this->assertGreaterThan(0.5, $delta, 'First lock acquired too soon');
|
||||||
|
|
||||||
$lock->release();
|
$lock->release();
|
||||||
|
|
||||||
@@ -86,7 +86,7 @@ class phpbb_lock_flock_test extends phpbb_test_case
|
|||||||
$ok = $lock->acquire();
|
$ok = $lock->acquire();
|
||||||
$delta = time() - $start;
|
$delta = time() - $start;
|
||||||
$this->assertTrue($ok);
|
$this->assertTrue($ok);
|
||||||
$this->assertLessThan(0.1, $delta);
|
$this->assertLessThan(0.1, $delta, 'Second lock not acquired instantaneously');
|
||||||
|
|
||||||
// reap the child
|
// reap the child
|
||||||
$status = null;
|
$status = null;
|
||||||
|
Reference in New Issue
Block a user