You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2010/04/21 20:08:29 UTC
DO NOT REPLY [Bug 49164] New: junit test ignores failures in threads
https://issues.apache.org/bugzilla/show_bug.cgi?id=49164
Summary: junit test ignores failures in threads
Product: Tomcat 7
Version: trunk
Platform: All
OS/Version: All
Status: NEW
Severity: minor
Priority: P2
Component: Cluster
AssignedTo: dev@tomcat.apache.org
ReportedBy: felix.schumacher@internetallee.de
Created an attachment (id=25328)
--> (https://issues.apache.org/bugzilla/attachment.cgi?id=25328)
channel exceptions from different threads to main junit thread
org.apache.catalina.tribes.test.interceptors.TestOrderInterceptor#testOrder2
starts a few threads to test concurrently sending events to one destination. It
tries to make the junit test case fail in case of an exception. Junit will not
see those failures, since they are in different threads.
Attached patch will channel the exception to main junit thread, which can call
fail() if exceptions were catched. It will log only the first exception in the
queue.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 49164] junit test ignores failures in threads
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=49164
Mark Thomas <ma...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from Mark Thomas <ma...@apache.org> 2010-04-23 09:48:41 EDT ---
Many thanks for the patch.
It has been applied to 7.0.x and will be included in 7.0.0 onwards.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org