From 6c75af689d8600d8b18bcebc677fbd1e82f86b50 Mon Sep 17 00:00:00 2001 From: neznaika0 Date: Mon, 4 Nov 2024 10:28:58 +0300 Subject: [PATCH] fix: Remove DB files after tests --- 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 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); } }