File tree 1 file changed +3
-4
lines changed
driver/src/test/java/org/neo4j/driver/v1/integration
1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 32
32
import org .neo4j .driver .v1 .Transaction ;
33
33
import org .neo4j .driver .v1 .exceptions .ClientException ;
34
34
import org .neo4j .driver .v1 .exceptions .Neo4jException ;
35
- import org .neo4j .driver .v1 .exceptions .TransientException ;
36
35
import org .neo4j .driver .v1 .util .TestNeo4j ;
37
36
38
37
import static org .hamcrest .CoreMatchers .equalTo ;
@@ -248,11 +247,11 @@ public void shouldBeAbleToBeginTxAfterResetFailureIsConsumed() throws Throwable
248
247
try
249
248
{
250
249
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" );
252
251
}
253
- catch ( TransientException e )
252
+ catch ( Neo4jException e )
254
253
{
255
- MatcherAssert .assertThat ( e .getMessage (), startsWith ( "The transaction has been terminated. " ) );
254
+ MatcherAssert .assertThat ( e .getMessage (), startsWith ( "The transaction has been terminated" ) );
256
255
}
257
256
catch ( Throwable e )
258
257
{
You can’t perform that action at this time.
0 commit comments