tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r1821838 - /tomcat/trunk/test/org/apache/tomcat/jni/TestSocketServerAnyLocalAddress.java
Date Mon, 22 Jan 2018 11:28:17 GMT
Author: markt
Date: Mon Jan 22 11:28:17 2018
New Revision: 1821838

URL: http://svn.apache.org/viewvc?rev=1821838&view=rev
Log:
Improve failure message to aid debugging

Modified:
    tomcat/trunk/test/org/apache/tomcat/jni/TestSocketServerAnyLocalAddress.java

Modified: tomcat/trunk/test/org/apache/tomcat/jni/TestSocketServerAnyLocalAddress.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/test/org/apache/tomcat/jni/TestSocketServerAnyLocalAddress.java?rev=1821838&r1=1821837&r2=1821838&view=diff
==============================================================================
--- tomcat/trunk/test/org/apache/tomcat/jni/TestSocketServerAnyLocalAddress.java (original)
+++ tomcat/trunk/test/org/apache/tomcat/jni/TestSocketServerAnyLocalAddress.java Mon Jan 22
11:28:17 2018
@@ -96,7 +96,7 @@ public class TestSocketServerAnyLocalAdd
             } else if (buf[0] == 'Z') {
                 // NO-OP - connection closing
             } else {
-                Assert.fail("Unexpected data");
+                Assert.fail("Unexpected data [" + (char) buf[0] + "]");
             }
         }
 



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


Mime
View raw message