Sleep is no longer needed on tests

This commit is contained in:
César D. Rodas 2013-11-13 05:06:23 -03:00
parent 66dd67c088
commit c27aeeab10

View File

@ -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);