File tree Expand file tree Collapse file tree
src/test/java/com/cedarsoftware/util Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44* ** MAINTENANCE** : Fixed flaky ` IOUtilitiesProtocolValidationTest.testProtocolValidationPerformance ` test
55 * Added warmup iterations to allow JIT compilation before timing
66 * Increased threshold from 100ms to 500ms for CI environments with variable performance
7+ * ** MAINTENANCE** : Fixed flaky ` UniqueIdGeneratorTest ` timing tests
8+ * Increased threshold from 2ms to 50ms for CI environments with thread scheduling delays
79
810#### 4.90.0 2026-02-02
911* ** BUG FIX** : ` DeepEquals ` - URL comparison now uses string representation instead of ` URL.equals() `
Original file line number Diff line number Diff line change @@ -66,11 +66,12 @@ void testIDtoDate()
6666 {
6767 long id = getUniqueId ();
6868 Date date = getDate (id );
69- assert abs (date .getTime () - currentTimeMillis ()) < 2 ;
69+ // Use generous threshold for CI environments with thread scheduling delays
70+ assert abs (date .getTime () - currentTimeMillis ()) < 50 ;
7071
7172 id = getUniqueId19 ();
7273 date = getDate19 (id );
73- assert abs (date .getTime () - currentTimeMillis ()) < 2 ;
74+ assert abs (date .getTime () - currentTimeMillis ()) < 50 ;
7475 }
7576
7677 @ Test
@@ -79,12 +80,13 @@ void testIDtoInstant()
7980 long id = getUniqueId ();
8081 long currentTime = currentTimeMillis ();
8182 Instant instant = getInstant (id );
82- assert abs (instant .toEpochMilli () - currentTime ) <= 2 ;
83+ // Use generous threshold for CI environments with thread scheduling delays
84+ assert abs (instant .toEpochMilli () - currentTime ) <= 50 ;
8385
8486 id = getUniqueId19 ();
8587 instant = getInstant19 (id );
8688 currentTime = currentTimeMillis ();
87- assert abs (instant .toEpochMilli () - currentTime ) <= 2 ;
89+ assert abs (instant .toEpochMilli () - currentTime ) <= 50 ;
8890 }
8991
9092 @ Test
You can’t perform that action at this time.
0 commit comments