Author: markt
Date: Tue Feb 2 14:52:10 2016
New Revision: 1728138
URL: http://svn.apache.org/viewvc?rev=1728138&view=rev
Log:
Log the actual value rather than the expected value
Modified:
tomcat/trunk/test/org/apache/tomcat/websocket/server/TestClose.java
Modified: tomcat/trunk/test/org/apache/tomcat/websocket/server/TestClose.java
URL:
http://svn.apache.org/viewvc/tomcat/trunk/test/org/apache/tomcat/websocket/server/TestClose.java?rev=1728138&r1=1728137&r2=1728138&view=diff
==============================================================================
--- tomcat/trunk/test/org/apache/tomcat/websocket/server/TestClose.java
(original)
+++ tomcat/trunk/test/org/apache/tomcat/websocket/server/TestClose.java Tue Feb
2 14:52:10 2016
@@ -107,7 +107,7 @@ public class TestClose extends TomcatBas
public static void awaitOnError(Class<? extends Throwable> exceptionClazz)
{
awaitLatch(events.onErrorCalled, "onError not called");
- Assert.assertTrue(exceptionClazz.getName(),
+ Assert.assertTrue(events.onErrorThrowable.getClass().getName(),
events.onErrorThrowable.getClass().isAssignableFrom(exceptionClazz));
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]