You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Ismaël Mejía (JIRA)" <ji...@apache.org> on 2018/12/20 14:13:00 UTC
[jira] [Created] (AVRO-2290)
TestSpecificLogicalTypes.testRecordWithJsr310LogicalTypes breaks on Java 11
Ismaël Mejía created AVRO-2290:
----------------------------------
Summary: TestSpecificLogicalTypes.testRecordWithJsr310LogicalTypes breaks on Java 11
Key: AVRO-2290
URL: https://issues.apache.org/jira/browse/AVRO-2290
Project: Apache Avro
Issue Type: Sub-task
Reporter: Ismaël Mejía
Java 11 has nano-second precision so the test breaks, the test should now detect this and adapt accordingly.
{code}
[ERROR] testRecordWithJsr310LogicalTypes(org.apache.avro.specific.TestSpecificLo
gicalTypes) Time elapsed: 0.24 s <<< FAILURE!
java.lang.AssertionError: Should match written record expected:<{"b": true, "i32
": 34, "i64": 35, "f32": 3.14, "f64": 3019.34, "s": null, "d": 2018-12-20, "t":
15:02:53.535103, "ts": 2018-12-20T14:02:53.535127Z, "dec": 123.45}> but was:<{"b
": true, "i32": 34, "i64": 35, "f32": 3.14, "f64": 3019.34, "s": null, "d": 2018
-12-20, "t": 15:02:53.535, "ts": 2018-12-20T14:02:53.535Z, "dec": 123.45}>
at org.apache.avro.specific.TestSpecificLogicalTypes.testRecordWithJsr31
0LogicalTypes(TestSpecificLogicalTypes.java:132)
[ERROR] testAbilityToReadJodaRecordWrittenAsJsr310Record(org.apache.avro.specifi
c.TestSpecificLogicalTypes) Time elapsed: 0.005 s <<< FAILURE!
java.lang.AssertionError:
Expected: is "15:02:53.639158"
but: was "15:02:53.639"
at org.apache.avro.specific.TestSpecificLogicalTypes.testAbilityToReadJo
daRecordWrittenAsJsr310Record(TestSpecificLogicalTypes.java:204)
{code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)