You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Kotaro Terada (JIRA)" <ji...@apache.org> on 2018/10/10 03:02:00 UTC
[jira] [Created] (NIFI-5676) A test in PutORCTest fails because it
depends on timezone
Kotaro Terada created NIFI-5676:
-----------------------------------
Summary: 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
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)