Skip to content

Commit f949f66

Browse files
committed
Tests: relax KEK cache timing assertion to avoid flaky CI failures
1 parent e8b5ee2 commit f949f66

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/test/java/com/wolfssl/provider/jce/test/WolfSSLKeyStoreTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2547,10 +2547,10 @@ public void testKekCacheEnabledImprovePerformance() throws Exception {
25472547
assertNotNull(key2);
25482548
assertEquals(key1, key2);
25492549

2550-
/* Cache hit should be significantly faster */
2550+
/* Cache hit should be faster. */
25512551
assertTrue("Cache hit should be faster: " +
25522552
"first=" + first + "ms, second=" + second + "ms",
2553-
first > 0 && (first > 50 ? second < first / 5 : true));
2553+
first > 0 && (first > 50 ? second < first : true));
25542554

25552555
} finally {
25562556
/* Restore original properties */

0 commit comments

Comments
 (0)