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: [email protected]
ReportedBy: [email protected]
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: [email protected]
For additional commands, e-mail: [email protected]