Skip to content

Commit 30a06bb

Browse files
feat(#286): fix UT
1 parent f9ba55e commit 30a06bb

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

modules/flink-common-api/src/test/scala/org/apache/flinkx/api/SerializerTest.scala

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -201,15 +201,18 @@ class SerializerTest extends AnyFlatSpec with Matchers with Inspectors with Test
201201
}
202202

203203
it should "serialize ZoneOffset" in {
204-
testTypeInfoAndSerializer(ZoneOffset.UTC)
204+
// Don't test type info, as its arity and total fields depend on the JDK version
205+
testSerializer(ZoneOffset.UTC)
205206
}
206207

207208
it should "serialize OffsetDateTime" in {
208-
testTypeInfoAndSerializer(OffsetDateTime.now())
209+
// Don't test type info, as its arity and total fields depend on the JDK version
210+
testSerializer(OffsetDateTime.now())
209211
}
210212

211213
it should "serialize ZonedDateTime" in {
212-
testTypeInfoAndSerializer(ZonedDateTime.now())
214+
// Don't test type info, as its arity and total fields depend on the JDK version
215+
testSerializer(ZonedDateTime.now())
213216
}
214217

215218
}

0 commit comments

Comments
 (0)