[ 
https://issues.apache.org/jira/browse/NIFI-5676?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16644577#comment-16644577
 ] 

ASF GitHub Bot commented on NIFI-5676:
--------------------------------------

Github user asfgit closed the pull request at:

    https://github.com/apache/nifi/pull/3059


> A test in PutORCTest fails because it depends on timezone
> ---------------------------------------------------------
>
>                 Key: NIFI-5676
>                 URL: https://issues.apache.org/jira/browse/NIFI-5676
>             Project: Apache NiFi
>          Issue Type: Test
>            Reporter: Kotaro Terada
>            Priority: Major
>
> Test {{testWriteORCWithAvroLogicalTypes}} fails because it depends on 
> timezone. It seems that, in this test, the converted date in ORC is "1 day" 
> before the input date when the timezone is ahead of GMT. For example, when 
> the timezone is "GMT+9", this test fails as follows:
> {noformat}
> [INFO] Running org.apache.nifi.processors.orc.PutORCTest
> [ERROR] Tests run: 7, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.694 
> s <<< FAILURE! - in org.apache.nifi.processors.orc.PutORCTest
> [ERROR] 
> testWriteORCWithAvroLogicalTypes(org.apache.nifi.processors.orc.PutORCTest)  
> Time elapsed: 0.146 s  <<< FAILURE!
> java.lang.AssertionError: expected:<17813> but was:<17812>
>       at 
> org.apache.nifi.processors.orc.PutORCTest.lambda$testWriteORCWithAvroLogicalTypes$1(PutORCTest.java:250)
>       at 
> org.apache.nifi.processors.orc.PutORCTest.verifyORCUsers(PutORCTest.java:408)
>       at 
> org.apache.nifi.processors.orc.PutORCTest.testWriteORCWithAvroLogicalTypes(PutORCTest.java:246)
> {noformat}
> To fix this, we can set the timezone information in the assertion as we did 
> in [NIFI-3718|https://issues.apache.org/jira/browse/NIFI-3718].



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to