Sleep is no longer needed on tests
This commit is contained in:
parent
66dd67c088
commit
c27aeeab10
|
@ -57,7 +57,6 @@ class DBTest extends \phpunit_framework_testcase
|
||||||
$db->insert("foobar", ['type' => '/foobar', 'karma' => 20]);
|
$db->insert("foobar", ['type' => '/foobar', 'karma' => 20]);
|
||||||
$db->insert("foobar", ['type' => '/barfoo', 'karma' => 30]);
|
$db->insert("foobar", ['type' => '/barfoo', 'karma' => 30]);
|
||||||
|
|
||||||
sleep(1);
|
|
||||||
$this->assertEquals($db->first("SELECT max(karma) FROM foobar")->max, 30);
|
$this->assertEquals($db->first("SELECT max(karma) FROM foobar")->max, 30);
|
||||||
$this->assertEquals($db->first("SELECT min(karma) FROM foobar")->min, 10);
|
$this->assertEquals($db->first("SELECT min(karma) FROM foobar")->min, 10);
|
||||||
$this->assertEquals($db->first("SELECT mean(karma) FROM foobar")->mean, 20);
|
$this->assertEquals($db->first("SELECT mean(karma) FROM foobar")->mean, 20);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user