@@ -115,26 +115,19 @@ def run(tx):
115
115
self .assertGreater (len (bookmarks [0 ]), 3 )
116
116
117
117
def test_does_not_update_last_bookmark_on_rollback (self ):
118
- if get_driver_name () in ["java" ]:
119
- self .skipTest ("Client exceptions not properly handled in backend" )
120
-
121
118
# Verifies that last bookmarks still is empty when transactional
122
119
# function rolls back transaction.
123
120
def run (tx ):
124
121
tx .run ("CREATE (n:SessionNode) RETURN n" )
125
122
raise ApplicationCodeError ("No thanks" )
126
123
127
124
self ._session1 = self ._driver .session ("w" )
128
- expected_exc = types .FrontendError
129
- # TODO: remove this block once all languages work
130
- with self .assertRaises (expected_exc ):
125
+ with self .assertRaises (types .FrontendError ):
131
126
self ._session1 .write_transaction (run )
132
127
bookmarks = self ._session1 .last_bookmarks ()
133
128
self .assertEqual (len (bookmarks ), 0 )
134
129
135
130
def test_client_exception_rolls_back_change (self ):
136
- if get_driver_name () in ["java" ]:
137
- self .skipTest ("Client exceptions not properly handled in backend" )
138
131
node_id = - 1
139
132
140
133
def run (tx ):
@@ -154,9 +147,6 @@ def assertion_query(tx):
154
147
155
148
self ._session1 = self ._driver .session ("w" )
156
149
expected_exc = types .FrontendError
157
- # TODO: remove this block once all languages work
158
- if get_driver_name () in ["javascript" ]:
159
- expected_exc = types .DriverError
160
150
with self .assertRaises (expected_exc ):
161
151
self ._session1 .write_transaction (run )
162
152
0 commit comments