Skip to content

Commit

Permalink
Fix UniqueConstraintTest
Browse files Browse the repository at this point in the history
  • Loading branch information
gartens committed May 3, 2024
1 parent e2edc98 commit 1a7876b
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
import java.sql.SQLException;
import java.sql.Statement;
import lombok.extern.slf4j.Slf4j;
import org.apache.calcite.avatica.AvaticaSqlException;
import org.junit.jupiter.api.AfterAll;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.BeforeAll;
Expand Down Expand Up @@ -472,7 +471,7 @@ public void batchUpdateTest( boolean useIndex ) throws SQLException {
try {
preparedStatement.executeBatch();
Assertions.fail( "Expected ConstraintViolationException was not thrown" );
} catch ( AvaticaSqlException e ) {
} catch ( PrismInterfaceServiceException e ) {
if ( !e.getMessage().contains( "Update violates unique constraint" ) ) {
throw new RuntimeException( "Unexpected exception", e );
}
Expand Down

0 comments on commit 1a7876b

Please sign in to comment.