resolve failovertransactiontest hang in hudson

git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1022058 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Gary Tully 2010-10-13 10:08:10 +00:00
parent e3f784df2a
commit 80528f64a8
2 changed files with 7 additions and 0 deletions

View File

@ -71,6 +71,12 @@ public class FailoverTransactionTest extends TestSupport {
startBroker(true);
}
public void setUp() throws Exception {
super.setMaxTestTime(20 * 60 * 1000); // some boxes can be real slow
super.setAutoFail(true);
super.setUp();
}
public void tearDown() throws Exception {
stopBroker();
}

View File

@ -79,6 +79,7 @@ public class SocketProxy {
public void open() throws Exception {
serverSocket = new ServerSocket();
serverSocket.setReuseAddress(true);
if (receiveBufferSize > 0) {
serverSocket.setReceiveBufferSize(receiveBufferSize);
}