Skip to content

Commit 1e7a0d7

Browse files
committed
Changed used ports for ResynchTest and TimerTest to avoid conflict with AcceptanceTestSuite or other tests
1 parent 967d8ee commit 1e7a0d7

File tree

4 files changed

+4
-5
lines changed

4 files changed

+4
-5
lines changed

quickfixj-core/src/test/java/quickfix/test/acceptance/resynch/ResynchTestClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ public void run() throws ConfigError, SessionNotFound, InterruptedException {
103103
defaults.put("ConnectionType", "initiator");
104104
defaults.put("HeartBtInt", "2");
105105
defaults.put("SocketConnectHost", "localhost");
106-
defaults.put("SocketConnectPort", "9888");
106+
defaults.put("SocketConnectPort", "19889");
107107
defaults.put("SocketTcpNoDelay", "Y");
108108
defaults.put("ReconnectInterval", "3");
109109
defaults.put("StartTime", "00:00:00");

quickfixj-core/src/test/java/quickfix/test/acceptance/resynch/ResynchTestServer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ public void run() {
101101
try {
102102
HashMap<Object, Object> defaults = new HashMap<Object, Object>();
103103
defaults.put("ConnectionType", "acceptor");
104-
defaults.put("SocketAcceptPort", "9888");
104+
defaults.put("SocketAcceptPort", "19889");
105105
defaults.put("StartTime", "00:00:00");
106106
defaults.put("EndTime", "00:00:00");
107107
defaults.put("SenderCompID", "ISLD");

quickfixj-core/src/test/java/quickfix/test/acceptance/timer/TimerTestClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ public void run() throws ConfigError, SessionNotFound, InterruptedException {
9292
defaults.put("ConnectionType", "initiator");
9393
defaults.put("HeartBtInt", "2");
9494
defaults.put("SocketConnectHost", "localhost");
95-
defaults.put("SocketConnectPort", "9888");
95+
defaults.put("SocketConnectPort", "19888");
9696
defaults.put("SocketTcpNoDelay", "Y");
9797
defaults.put("StartTime", "00:00:00");
9898
defaults.put("EndTime", "00:00:00");

quickfixj-core/src/test/java/quickfix/test/acceptance/timer/TimerTestServer.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,7 @@ public void run() {
106106
try {
107107
HashMap<Object, Object> defaults = new HashMap<Object, Object>();
108108
defaults.put("ConnectionType", "acceptor");
109-
defaults.put("SocketAcceptPort", Integer.toString(AvailablePortFinder
110-
.getNextAvailable(10000)));
109+
defaults.put("SocketAcceptPort", "19888" );
111110
defaults.put("StartTime", "00:00:00");
112111
defaults.put("EndTime", "00:00:00");
113112
defaults.put("SenderCompID", "ISLD");

0 commit comments

Comments
 (0)