1
0

[HUDI-2769] Fix StreamerUtil#medianInstantTime for very near instant time (#4005)

This commit is contained in:
Danny Chan
2021-11-16 13:46:34 +08:00
committed by GitHub
parent bff8769ed4
commit 6f5e661010
2 changed files with 9 additions and 1 deletions

View File

@@ -86,6 +86,8 @@ public class TestStreamerUtil {
assertThrows(IllegalArgumentException.class,
() -> StreamerUtil.medianInstantTime(lower, higher),
"The first argument should have newer instant time");
// test very near instant time
assertFalse(StreamerUtil.medianInstantTime("20211116115634", "20211116115633").isPresent());
}
@Test