Skip to content

Commit 988368d

Browse files
committed
Reset DB before dropping
we cannot drop the db that's currently set for the transaction
1 parent 07eeac8 commit 988368d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

graphdatascience/tests/integration/test_graph_ops.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,8 +275,8 @@ def test_graph_export(runner: QueryRunner, gds: GraphDataScience) -> None:
275275
node_count = runner.run_cypher("MATCH (n) RETURN COUNT(n) AS c").squeeze()
276276

277277
assert node_count == 3
278-
runner.run_cypher("DROP DATABASE $dbName WAIT", {"dbName": MY_DB_NAME})
279278
runner.set_database(DB)
279+
runner.run_cypher("DROP DATABASE $dbName WAIT", {"dbName": MY_DB_NAME})
280280

281281

282282
@pytest.mark.filterwarnings("ignore: The query used a deprecated procedure.")

0 commit comments

Comments
 (0)