Skip to content

Commit

Permalink
fix: Remove DB files after tests (codeigniter4#9192)
Browse files Browse the repository at this point in the history
  • Loading branch information
neznaika0 authored Dec 19, 2024
1 parent f48aa6f commit ab5536f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/system/Database/Live/ForgeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down

0 comments on commit ab5536f

Please sign in to comment.