diff --git a/tests/system/Database/Live/ForgeTest.php b/tests/system/Database/Live/ForgeTest.php index ef3a1f3726da..16e1d84bff9a 100644 --- a/tests/system/Database/Live/ForgeTest.php +++ b/tests/system/Database/Live/ForgeTest.php @@ -81,8 +81,11 @@ public function testCreateDatabaseWithDots(): void $this->assertFalse($result); $db->close(); + if ($this->db->DBDriver !== 'SQLite3') { $this->forge->dropDatabase($dbName); + } elseif (is_file($db->database)) { + unlink($db->database); } }