Skip to content

Commit

Permalink
Close the non-shared connection instead of marking it non-reusable
Browse files Browse the repository at this point in the history
  • Loading branch information
morozov committed Nov 15, 2021
1 parent 06f5925 commit 8fb8105
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/Functional/PortabilityTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ protected function setUp(): void

protected function tearDown(): void
{
$this->markConnectionNotReusable();
// the connection that overrides the shared one has to be manually closed prior to 4.0.0 to prevent leak
// see https://github.com/doctrine/dbal/issues/4515
$this->connection->close();
}

public function testFullFetchMode(): void
Expand Down

0 comments on commit 8fb8105

Please sign in to comment.