Skip to content

Commit 28638fa

Browse files
committed
Updated getStartTime for stability
1 parent f59d6b1 commit 28638fa

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/system/Database/BaseQueryTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,11 @@ public function testGetStartTime()
4747
{
4848
$query = new Query($this->db);
4949

50-
$start = microtime(true);
50+
$start = round(microtime(true));
5151

5252
$query->setDuration($start, $start + 5);
5353

54-
$this->assertEquals(round($start, 4), $query->getStartTime(true));
54+
$this->assertEquals($start, $query->getStartTime(true));
5555
}
5656

5757
//--------------------------------------------------------------------

0 commit comments

Comments
 (0)