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

Pierre Villard updated NIFI-11362:
----------------------------------
    Affects Version/s:     (was: 1.10.0)
                           (was: nifi-nar-maven-plugin-1.3.2)
                           (was: 1.11.0)
                           (was: 1.12.0)
                           (was: 1.11.1)
                           (was: 1.11.2)
                           (was: 1.11.3)
                           (was: 1.11.4)
                           (was: 1.13.0)
                           (was: 1.12.1)
                           (was: nifi-nar-maven-plugin-1.3.3)
                           (was: 1.14.0)
                           (was: 1.13.1)
                           (was: 1.13.2)
                           (was: 1.15.0)
                           (was: 1.16.0)
                           (was: nifi-nar-maven-plugin-1.3.4)
                           (was: 1.15.1)
                           (was: 1.15.2)
                           (was: 1.15.3)
                           (was: 1.17.0)
                           (was: 1.16.1)
                           (was: 1.16.2)
                           (was: 1.16.3)
                           (was: nifi-nar-maven-plugin-1.4.0)
                           (was: 1.18.0)
                           (was: 1.19.0)
                           (was: 1.20.0)
                           (was: 1.19.1)
                           (was: nifi-nar-maven-plugin-1.5.0)

> Fixed Flaky Test in TestValidateRecord.java
> -------------------------------------------
>
>                 Key: NIFI-11362
>                 URL: https://issues.apache.org/jira/browse/NIFI-11362
>             Project: Apache NiFi
>          Issue Type: Bug
>         Environment: Java 11.0.18 
> Maven 3.8.1
> Ubuntu 22.034.2 LTS
>            Reporter: Armin Rahbar
>            Priority: Minor
>             Fix For: 2.7.0
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> Commit e18d9ce added the flaky test testValidateJsonTimestamp in 
> TestValidateRecord.java. The testValidateJsonTimestamp test fails because two 
> individual tests inside testValidateJsonTimestamp are order dependent:
> -Test with a timestamp that has an invalid format
> -Test with an Inferred Schema.
> You can produce the failure by running the test with NonDex maven plugin with 
> the following command: 
> mvn -pl nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors 
> edu.illinois:nondex-maven-plugin:2.1.1:nondex 
> -Dtest=org.apache.nifi.processors.standard.TestValidateRecord#testValidateJsonTimestamp
> When run with NonDex, testValidateJsonTimestamp test should run successfully, 
> but instead, it results in the following failure: 
> TestValidateRecord.testValidateJsonTimestamp:549 expected: <1> but was: <0>
> How to fix it:
> Inside testValidateJsonTimestamp, reverse the order of these tests:
> -Test with a timestamp that has an invalid format
> -Test with an Inferred Schema.



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

Reply via email to