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

ASF subversion and git services commented on NIFI-3718:
-------------------------------------------------------

Commit 141334c3c9db76c658af2edcd62652a50ba26a4b in nifi's branch 
refs/heads/master from [~mattyb149]
[ https://git-wip-us.apache.org/repos/asf?p=nifi.git;h=141334c ]

NIFI-3718: Fixed TestAvroRecordReader to handle timezone differences

This closes #1683


> TestAvroRecordReader fails due to timezone issue
> ------------------------------------------------
>
>                 Key: NIFI-3718
>                 URL: https://issues.apache.org/jira/browse/NIFI-3718
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Tools and Build
>    Affects Versions: 1.2.0
>            Reporter: Matt Burgess
>            Assignee: Matt Burgess
>             Fix For: 1.2.0
>
>
> TestAvroRecord is failing on Travis due to a timezone issue, it seems to fail 
> when using GMT/UTC (which Travis apparently uses) but passes in other 
> timezones such as EDT.
> It looks like the issue is with the test using Date.toString() in the assert 
> statement, the internal value is correct but when converted to a String, the 
> value in the "date" field in the record should be a day later (April 5) but 
> is not.
> Proposed fix is to decrement the value in the "date" field in the test 
> record, and use a GMT-based DateFormat to format the value of the "date" 
> field.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to