Skip to content

Commit 442b3b6

Browse files
committed
Fixed failure test
1 parent 685e7ea commit 442b3b6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/integration/test_session.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -357,8 +357,10 @@ def test_last_run_statement_should_be_cleared_on_failure(self):
357357
connection_1 = session._connection
358358
assert connection_1._last_run_statement == "RETURN 1"
359359
with self.assertRaises(CypherSyntaxError):
360-
tx.run("X").consume()
361-
connection_2 = session._connection
360+
result = tx.run("X")
361+
connection_2 = session._connection
362+
result.consume()
363+
# connection_2 = session._connection
362364
assert connection_2 is connection_1
363365
assert connection_2._last_run_statement is None
364366
tx.close()

0 commit comments

Comments
 (0)