From ab5536f92b98102b068959dac17c8ed8266f588f Mon Sep 17 00:00:00 2001 From: neznaika0 Date: Thu, 19 Dec 2024 11:29:35 +0300 Subject: [PATCH] fix: Remove DB files after tests (#9192) --- tests/system/Database/Live/ForgeTest.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/system/Database/Live/ForgeTest.php b/tests/system/Database/Live/ForgeTest.php index 9aecdd969c78..16ea6b528c89 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); } }