Skip to content

Commit f620644

Browse files
committed
fixing error message expectation for 3.3
1 parent 34c85fb commit f620644

File tree

1 file changed

+2
-1
lines changed
  • driver/src/test/java/org/neo4j/driver/v1/integration

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
import org.neo4j.driver.v1.util.TestNeo4jSession;
3434

3535
import static org.hamcrest.CoreMatchers.equalTo;
36+
import static org.hamcrest.CoreMatchers.startsWith;
3637
import static org.hamcrest.MatcherAssert.assertThat;
3738

3839
public class ErrorIT
@@ -48,7 +49,7 @@ public void shouldThrowHelpfulSyntaxError() throws Throwable
4849
{
4950
// Expect
5051
exception.expect( ClientException.class );
51-
exception.expectMessage( "Invalid input 'i'" );
52+
exception.expectMessage( startsWith( "Invalid input") );
5253

5354
// When
5455
StatementResult result = session.run( "invalid statement" );

0 commit comments

Comments
 (0)