[
https://issues.apache.org/jira/browse/NIFI-5676?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Kotaro Terada reassigned NIFI-5676:
-----------------------------------
Assignee: Kotaro Terada
> 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
> Components: Extensions
> Reporter: Kotaro Terada
> Assignee: Kotaro Terada
> Priority: Major
> Fix For: 1.8.0
>
>
> 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)