summaryrefslogtreecommitdiff
path: root/java/common/src
diff options
context:
space:
mode:
authorMartin Ritchie <ritchiem@apache.org>2010-07-05 11:17:51 +0000
committerMartin Ritchie <ritchiem@apache.org>2010-07-05 11:17:51 +0000
commit1d3df0507e4b3d6a22cc9a2f3cc720811f2eb964 (patch)
tree4bcc6061f528f6f2eced40b8b2be24a89c488193 /java/common/src
parent54b71658de22512e7d79df8dcabf37a969899c1e (diff)
downloadqpid-python-1d3df0507e4b3d6a22cc9a2f3cc720811f2eb964.tar.gz
QPID-2165 : Ensure each MINANetworkDriverTest uses a new port, to prevent the in use errors
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@960555 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/common/src')
-rw-r--r--java/common/src/test/java/org/apache/qpid/transport/network/mina/MINANetworkDriverTest.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/java/common/src/test/java/org/apache/qpid/transport/network/mina/MINANetworkDriverTest.java b/java/common/src/test/java/org/apache/qpid/transport/network/mina/MINANetworkDriverTest.java
index 5af07d9735..fc8e689ca4 100644
--- a/java/common/src/test/java/org/apache/qpid/transport/network/mina/MINANetworkDriverTest.java
+++ b/java/common/src/test/java/org/apache/qpid/transport/network/mina/MINANetworkDriverTest.java
@@ -43,7 +43,7 @@ public class MINANetworkDriverTest extends TestCase
{
private static final String TEST_DATA = "YHALOTHAR";
- private static final int TEST_PORT = 2323;
+ private static int TEST_PORT = 2323;
private NetworkDriver _server;
private NetworkDriver _client;
private CountingProtocolEngine _countingEngine; // Keeps a count of how many bytes it's read
@@ -56,6 +56,9 @@ public class MINANetworkDriverTest extends TestCase
_client = new MINANetworkDriver();
_thrownEx = null;
_countingEngine = new CountingProtocolEngine();
+ // increment the port to prevent tests clashing with each other when
+ // the port is in TIMED_WAIT state.
+ TEST_PORT++;
}
@Override