diff --git a/tests/system/Database/Live/ForgeTest.php b/tests/system/Database/Live/ForgeTest.php index ddfa226276ee..06836c51d6ac 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); } }