Skip to content

Commit c0090d4

Browse files
committed
Close driver in auradb_runner fixture
1 parent 695b99f commit c0090d4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

graphdatascience/tests/integration/conftest.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,9 @@ def auradb_runner() -> Neo4jQueryRunner:
5151
_runner = Neo4jQueryRunner(driver)
5252
_runner.set_database(DB)
5353

54-
return _runner
54+
yield _runner
55+
56+
driver.close()
5557

5658

5759
@pytest.fixture(scope="package")

0 commit comments

Comments
 (0)