From d3c99c2e406af09695719a4c22c8274aa3783ce3 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 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); } }