File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
driver/src/test/java/org/neo4j/driver/v1/integration Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 3232import org .neo4j .driver .v1 .Transaction ;
3333import org .neo4j .driver .v1 .exceptions .ClientException ;
3434import org .neo4j .driver .v1 .exceptions .Neo4jException ;
35- import org .neo4j .driver .v1 .exceptions .TransientException ;
3635import org .neo4j .driver .v1 .util .TestNeo4j ;
3736
3837import static org .hamcrest .CoreMatchers .equalTo ;
@@ -248,11 +247,11 @@ public void shouldBeAbleToBeginTxAfterResetFailureIsConsumed() throws Throwable
248247 try
249248 {
250249 procedureResult .consume ();
251- fail ( "Should procedure call with an exception as we interrupted procedure call" );
250+ fail ( "Should procedure throw an exception as we interrupted procedure call" );
252251 }
253- catch ( TransientException e )
252+ catch ( Neo4jException e )
254253 {
255- MatcherAssert .assertThat ( e .getMessage (), startsWith ( "The transaction has been terminated. " ) );
254+ MatcherAssert .assertThat ( e .getMessage (), startsWith ( "The transaction has been terminated" ) );
256255 }
257256 catch ( Throwable e )
258257 {
You can’t perform that action at this time.
0 commit comments