This is an automated email from the ASF dual-hosted git repository.

markt pushed a commit to branch 8.5.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git

The following commit(s) were added to refs/heads/8.5.x by this push:
     new 74a20a7  Fix broken test
74a20a7 is described below

commit 74a20a7038fbc5167cf8bfb4e08663af4f33a6d9
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Thu Aug 19 13:11:44 2021 +0100

    Fix broken test
---
 test/org/apache/tomcat/util/net/TestCustomSslTrustManager.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/test/org/apache/tomcat/util/net/TestCustomSslTrustManager.java 
b/test/org/apache/tomcat/util/net/TestCustomSslTrustManager.java
index f2afd93..b8b21b7 100644
--- a/test/org/apache/tomcat/util/net/TestCustomSslTrustManager.java
+++ b/test/org/apache/tomcat/util/net/TestCustomSslTrustManager.java
@@ -123,7 +123,8 @@ public class TestCustomSslTrustManager extends 
TomcatBaseTest {
 
         if (trustType.equals(TrustType.NONE)) {
             Assert.assertTrue(rc != 200);
-            Assert.assertNull(res.toString());
+            Assert.assertNotNull(res);
+            Assert.assertTrue(res.toString().isEmpty());
         } else {
             Assert.assertEquals(200, rc);
             Assert.assertEquals("OK-" + TesterSupport.ROLE, res.toString());

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to