Skip to content

Commit bdcefaf

Browse files
committed
Fix error assertion in Session#reset() test
Previously termination of procedure resulted in `ProcedureCallFailed` client error. After neo4j/neo4j#11036 it has become `Transaction.Terminated` transient error. This commit updates the assertion.
1 parent 7310fdf commit bdcefaf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,10 +208,10 @@ public void shouldKillLongStreamingResult() throws Throwable
208208

209209
fail( "Should have got an exception about streaming get killed." );
210210
}
211-
catch ( ClientException e )
211+
catch ( Neo4jException e )
212212
{
213213
endTime = System.currentTimeMillis();
214-
assertThat( e.code(), equalTo( "Neo.ClientError.Procedure.ProcedureCallFailed" ) );
214+
assertThat( e.getMessage(), containsString( "The transaction has been terminated" ) );
215215
assertThat( recordCount, greaterThan( 1 ) );
216216

217217
assertTrue( startTime > 0 );

0 commit comments

Comments
 (0)