Skip to content

Commit 054061a

Browse files
committed
test: fix assertion
There was 1 failure: 1) CodeIgniter\Database\BaseConnectionTest::testStoresConnectionTimings Failed asserting that '0.000000' is greater than 0.0. /home/runner/work/CodeIgniter4/CodeIgniter4/tests/system/Database/BaseConnectionTest.php:125
1 parent 2fe4f94 commit 054061a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/system/Database/BaseConnectionTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ public function testStoresConnectionTimings(): void
122122
$db->initialize();
123123

124124
$this->assertGreaterThan($start, $db->getConnectStart());
125-
$this->assertGreaterThan(0.0, $db->getConnectDuration());
125+
$this->assertGreaterThanOrEqual(0.0, $db->getConnectDuration());
126126
}
127127

128128
/**

0 commit comments

Comments
 (0)