This is an automated email from the ASF dual-hosted git repository. markt pushed a commit to branch 9.0.x in repository https://gitbox.apache.org/repos/asf/tomcat.git
commit 02e01b80f31380671d390e3739068df39e63128d Author: Mark Thomas <ma...@apache.org> AuthorDate: Mon Jan 8 13:46:16 2024 +0000 Don't test lazy vs full as they can be quite close --- test/org/apache/tomcat/util/buf/TestCharsetCachePerformance.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/org/apache/tomcat/util/buf/TestCharsetCachePerformance.java b/test/org/apache/tomcat/util/buf/TestCharsetCachePerformance.java index f17098488e..0a0646db39 100644 --- a/test/org/apache/tomcat/util/buf/TestCharsetCachePerformance.java +++ b/test/org/apache/tomcat/util/buf/TestCharsetCachePerformance.java @@ -37,7 +37,8 @@ public class TestCharsetCachePerformance { Assert.assertTrue("No cache was faster than full cache", timeFull < timeNone); Assert.assertTrue("No cache was faster than lazy cache", timeLazy < timeNone); - Assert.assertTrue("Lazy cache was faster than full cache ", timeFull < timeLazy); + // On average full cache is faster than lazy cache but they are close enough the test will fail sometimes + //Assert.assertTrue("Lazy cache was faster than full cache ", timeFull < timeLazy); } --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org