Skip to content

Commit

Permalink
fix: Remove DB files after tests
Browse files Browse the repository at this point in the history
  • Loading branch information
neznaika0 committed Nov 4, 2024
1 parent 3e78c58 commit 6c75af6
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 6c75af6

Please sign in to comment.