svn commit: r1808251 - /tomcat/trunk/test/org/apache/tomcat/jni/TestSocketServerAnyLocalAddress.java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r1808251 - /tomcat/trunk/test/org/apache/tomcat/jni/TestSocketServerAnyLocalAddress.java

Mark Thomas-2
Author: markt
Date: Wed Sep 13 16:06:07 2017
New Revision: 1808251

URL: http://svn.apache.org/viewvc?rev=1808251&view=rev
Log:
More useful error logging if test fails.

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=1808251&r1=1808250&r2=1808251&view=diff
==============================================================================
--- tomcat/trunk/test/org/apache/tomcat/jni/TestSocketServerAnyLocalAddress.java (original)
+++ tomcat/trunk/test/org/apache/tomcat/jni/TestSocketServerAnyLocalAddress.java Wed Sep 13 16:06:07 2017
@@ -131,7 +131,7 @@ public class TestSocketServerAnyLocalAdd
                 int rep = in.read();
                 sock.close();
                 if (rep != 'Z') {
-                     throw new Exception("Read wrong data");
+                     throw new Exception("Read wrong data [" + rep + "]");
                 }
 
                 sock = new java.net.Socket();



---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]