Skip to content

Commit 2230d16

Browse files
author
Zhen
committed
Fix red build due to server changed a failure type
1 parent d033d8b commit 2230d16

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

driver/src/test/java/org/neo4j/driver/v1/integration/SessionIT.java

+3-4
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
import org.neo4j.driver.v1.Transaction;
3333
import org.neo4j.driver.v1.exceptions.ClientException;
3434
import org.neo4j.driver.v1.exceptions.Neo4jException;
35-
import org.neo4j.driver.v1.exceptions.TransientException;
3635
import org.neo4j.driver.v1.util.TestNeo4j;
3736

3837
import 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
{

0 commit comments

Comments
 (0)