Skip to content

Commit ab2c3fe

Browse files
committed
Let's try this to get rid of the Too many connections error
1 parent c4c4367 commit ab2c3fe

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

app/tests/TestCase.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,9 @@ protected function tearDown()
113113
// Force destroy test sessions
114114
$this->ci->session->destroy();
115115

116+
// Close DB connection
117+
$this->ci->db->getDatabaseManager()->disconnect();
118+
116119
$this->ci = null;
117120
}
118121

0 commit comments

Comments
 (0)