File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
driver/src/test/java/org/neo4j/driver/integration Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -278,7 +278,8 @@ void shouldFailBoBeginTxWithInvalidBookmark() {
278
278
.asyncSession (builder ().withBookmarks (parse ("InvalidBookmark" )).build ());
279
279
280
280
ClientException e = assertThrows (ClientException .class , () -> await (session .beginTransactionAsync ()));
281
- assertThat (e .getMessage (), containsString ("InvalidBookmark" ));
281
+ assertTrue (e .getMessage ().contains ("InvalidBookmark" )
282
+ || e .getMessage ().contains ("Parsing of supplied bookmarks failed" ));
282
283
}
283
284
284
285
@ Test
Original file line number Diff line number Diff line change @@ -269,11 +269,12 @@ void shouldNotAllowNewQueriesAfterAnIncorrectQuery() {
269
269
270
270
@ Test
271
271
void shouldFailBoBeginTxWithInvalidBookmark () {
272
- RxSession session = neo4j .driver ()
272
+ var session = neo4j .driver ()
273
273
.rxSession (builder ().withBookmarks (parse ("InvalidBookmark" )).build ());
274
274
275
- ClientException e = assertThrows (ClientException .class , () -> await (session .beginTransaction ()));
276
- assertThat (e .getMessage (), containsString ("InvalidBookmark" ));
275
+ var e = assertThrows (ClientException .class , () -> await (session .beginTransaction ()));
276
+ assertTrue (e .getMessage ().contains ("InvalidBookmark" )
277
+ || e .getMessage ().contains ("Parsing of supplied bookmarks failed" ));
277
278
}
278
279
279
280
@ Test
You can’t perform that action at this time.
0 commit comments