Skip to content

Commit ab5536f

Browse files
authored
fix: Remove DB files after tests (#9192)
1 parent f48aa6f commit ab5536f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/system/Database/Live/ForgeTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,11 @@ public function testCreateDatabaseWithDots(): void
8181
$this->assertFalse($result);
8282

8383
$db->close();
84+
8485
if ($this->db->DBDriver !== 'SQLite3') {
8586
$this->forge->dropDatabase($dbName);
87+
} elseif (is_file($db->database)) {
88+
unlink($db->database);
8689
}
8790
}
8891

0 commit comments

Comments
 (0)