mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 20:38:52 +00:00
[ticket/10103] assertLessThan/assertGreaterThan.
PHPBB3-10103
This commit is contained in:
parent
a553cfbc30
commit
285feb49f8
1 changed files with 2 additions and 2 deletions
|
@ -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->assertTrue($delta > 0.5);
|
$this->assertGreaterThan(0.5, $delta);
|
||||||
|
|
||||||
$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->assertTrue($delta < 0.1);
|
$this->assertLessThan(0.1, $delta);
|
||||||
|
|
||||||
// reap the child
|
// reap the child
|
||||||
$status = null;
|
$status = null;
|
||||||
|
|
Loading…
Add table
Reference in a new issue