Skip to content

Commit 3083a85

Browse files
committed
Removed commented test
1 parent 828ea6d commit 3083a85

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

test/test_session.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -335,15 +335,15 @@ def test_automatic_reset_after_failure(self):
335335
else:
336336
assert False, "A Cypher error should have occurred"
337337

338-
# def test_defunct(self):
339-
# from neo4j.v1.connection import ChunkChannel, ProtocolError
340-
# with GraphDatabase.driver("bolt://localhost", auth=auth_token).session() as session:
341-
# assert not session.connection.defunct
342-
# with patch.object(ChunkChannel, "chunk_reader", side_effect=ProtocolError()):
343-
# with self.assertRaises(ProtocolError):
344-
# session.run("RETURN 1").consume()
345-
# assert session.connection.defunct
346-
# assert session.connection.closed
338+
def test_defunct(self):
339+
from neo4j.v1.connection import ChunkChannel, ProtocolError
340+
with GraphDatabase.driver("bolt://localhost", auth=auth_token).session() as session:
341+
assert not session.connection.defunct
342+
with patch.object(ChunkChannel, "chunk_reader", side_effect=ProtocolError()):
343+
with self.assertRaises(ProtocolError):
344+
session.run("RETURN 1").consume()
345+
assert session.connection.defunct
346+
assert session.connection.closed
347347

348348

349349
class RecordTestCase(ServerTestCase):

0 commit comments

Comments
 (0)