Skip to content

Commit a845c70

Browse files
authored
Fix flaky test to account for varying message contents (#716)
1 parent 508cded commit a845c70

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

driver/src/test/java/org/neo4j/driver/integration/SessionResetIT.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -805,7 +805,8 @@ private static boolean isAcceptable( Throwable error )
805805
private static boolean isTransactionTerminatedException( Throwable error )
806806
{
807807
return error instanceof TransientException &&
808-
error.getMessage().startsWith( "The transaction has been terminated" );
808+
error.getMessage().startsWith( "The transaction has been terminated" ) ||
809+
error.getMessage().startsWith( "Trying to execute query in a terminated transaction" );
809810
}
810811

811812
private static String longPeriodicCommitQuery()

0 commit comments

Comments
 (0)