[ 
https://issues.apache.org/jira/browse/IGNITE-27059?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Pavel Pereslegin reassigned IGNITE-27059:
-----------------------------------------

    Assignee: Pavel Pereslegin

> Sql. Rework tests that fail when assertions are disabled
> --------------------------------------------------------
>
>                 Key: IGNITE-27059
>                 URL: https://issues.apache.org/jira/browse/IGNITE-27059
>             Project: Ignite
>          Issue Type: Improvement
>          Components: sql ai3
>            Reporter: Pavel Pereslegin
>            Assignee: Pavel Pereslegin
>            Priority: Major
>              Labels: ignite-3
>
> Ticket created based on IGNITE-26935 and this TC run  with disabled 
> assertions: 
> https://ci.ignite.apache.org/buildConfiguration/ApacheIgnite3xGradle_Test_RunAllTests?branch=pull%2F6916&buildTypeTab=overview
> We need to rework the following unit tests that check that the production 
> code will throw an AssertionError, and we want to get rid of such checks in 
> unit test.
>  ExecutionTargetFactorySelfTest.emptyTargets
>  GroupingAccumulatorTest.testFactory
>  GroupingAccumulatorTest.emptyState
>  GroupingAccumulatorTest.accumulatorIgnoresValues
>  QueryCheckerTest.testMetadata
>  ScannableTableSelfTest.testIndexScanInvalidCondition
> Investigate and fix behavior of the following e2e jdbc test:
> ItJdbcComplexDmlDdlSelfTest.testCreateSelectDrop
> When assertions are disabled it fails with
> {noformat}
> org.opentest4j.AssertionFailedError: Invalid rows count ==> expected: <0> but 
> was: <50>
>       at 
> app//org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151)
>       at 
> app//org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:132)
>       at 
> app//org.junit.jupiter.api.AssertEquals.failNotEqual(AssertEquals.java:197)
>       at 
> app//org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:150)
>       at 
> app//org.junit.jupiter.api.Assertions.assertEquals(Assertions.java:563)
>       at 
> app//org.apache.ignite.jdbc.ItJdbcComplexDmlDdlSelfTest.testCreateSelectDrop(ItJdbcComplexDmlDdlSelfTest.java:102)
>       at [email protected]/java.lang.reflect.Method.invoke(Method.java:568)
>       at [email protected]/java.util.ArrayList.forEach(ArrayList.java:1511)
>       at [email protected]/java.util.ArrayList.forEach(ArrayList.java:1511)
> {noformat}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to