mirror of https://github.com/apache/activemq.git
- Fix error in stub connection to prevent HttpTransportBrokerTest to hang.
- Enabled test cases. (This is passing for me now, both in maven and in my IDE. Have to see how it does in the boxes.) - Increase the logging level to error in HttpTransport. (Exceptions could be critical in that section. Better informed i guess.) - Just a note: HttpsTransportBrokerTest takes around 13mins in my machine to run. (It could be too long for a test case. 137 test cases * 5 secs to setup jetty each time + actual processing time.) git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@386013 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
687a45a516
commit
a2fc7a2dc0
|
@ -29,7 +29,6 @@ import org.apache.activemq.transport.DefaultTransportListener;
|
|||
import org.apache.activemq.transport.Transport;
|
||||
import org.apache.activemq.util.JMSExceptionSupport;
|
||||
import org.apache.activemq.util.ServiceSupport;
|
||||
import org.axiondb.engine.commands.ShutdownCommand;
|
||||
import edu.emory.mathcs.backport.java.util.concurrent.BlockingQueue;
|
||||
import edu.emory.mathcs.backport.java.util.concurrent.LinkedBlockingQueue;
|
||||
|
||||
|
@ -75,7 +74,7 @@ public class StubConnection implements Service {
|
|||
transport.setTransportListener(new DefaultTransportListener() {
|
||||
public void onCommand(Command command) {
|
||||
try {
|
||||
if (command.getClass() == ShutdownCommand.class) {
|
||||
if (command.getClass() == ShutdownInfo.class) {
|
||||
shuttingDown = true;
|
||||
}
|
||||
StubConnection.this.dispatch(command);
|
||||
|
|
|
@ -192,15 +192,9 @@
|
|||
</includes>
|
||||
<excludes>
|
||||
|
||||
<!-- http://jira.activemq.org/jira/browse/AMQ-628 -->
|
||||
<exclude>**/HttpTransportBrokerTest.*</exclude>
|
||||
|
||||
<!-- http://jira.activemq.org/jira/browse/AMQ-629 -->
|
||||
<exclude>**/SslTransportBrokerTest.*</exclude>
|
||||
|
||||
<!-- http://jira.activemq.org/jira/browse/AMQ-631 -->
|
||||
<exclude>**/HttpsTransportBrokerTest.*</exclude>
|
||||
|
||||
</excludes>
|
||||
</unitTest>
|
||||
|
||||
|
|
|
@ -100,7 +100,7 @@ public class HttpTransport extends HttpTransportSupport {
|
|||
}
|
||||
catch (Exception e) {
|
||||
if (!isStopped()) {
|
||||
log.warn("Failed to perform GET on: " + remoteUrl + " due to: " + e, e);
|
||||
log.error("Failed to perform GET on: " + remoteUrl + " due to: " + e, e);
|
||||
}
|
||||
else {
|
||||
log.trace("Caught error after closed: " + e, e);
|
||||
|
|
Loading…
Reference in New Issue