Author: rajith
Date: Tue Aug 18 22:16:34 2009
New Revision: 805604

URL: http://svn.apache.org/viewvc?rev=805604&view=rev
Log:
This is to fix the test failures introduced in r805267.
The above commit resulted in the FailoverTest and QueueBrowserAutoAckTest to 
fail under the java profiles.

Modified:
    
qpid/trunk/qpid/java/systests/src/main/java/org/apache/qpid/test/utils/FailoverBaseCase.java

Modified: 
qpid/trunk/qpid/java/systests/src/main/java/org/apache/qpid/test/utils/FailoverBaseCase.java
URL: 
http://svn.apache.org/viewvc/qpid/trunk/qpid/java/systests/src/main/java/org/apache/qpid/test/utils/FailoverBaseCase.java?rev=805604&r1=805603&r2=805604&view=diff
==============================================================================
--- 
qpid/trunk/qpid/java/systests/src/main/java/org/apache/qpid/test/utils/FailoverBaseCase.java
 (original)
+++ 
qpid/trunk/qpid/java/systests/src/main/java/org/apache/qpid/test/utils/FailoverBaseCase.java
 Tue Aug 18 22:16:34 2009
@@ -55,7 +55,7 @@
     {
         super.setUp();
         setSystemProperty("QPID_WORK", 
System.getProperty("java.io.tmpdir")+"/"+getFailingPort());
-        startBroker(FAILING_PORT);
+        startBroker(failingPort);
     }
 
     /**
@@ -76,7 +76,7 @@
 
     public void tearDown() throws Exception
     {
-       stopBroker(FAILING_PORT);
+       stopBroker(_broker.equals(VM)?FAILING_PORT:FAILING_PORT);
         super.tearDown();
         
FileUtils.deleteDirectory(System.getProperty("java.io.tmpdir")+"/"+getFailingPort());
     }



---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:commits-subscr...@qpid.apache.org

Reply via email to