Skip to content

Commit dc7f4ea

Browse files
author
Simon MacMullen
committed
Disable test for the time being
1 parent 4233563 commit dc7f4ea

File tree

2 files changed

+16
-17
lines changed

2 files changed

+16
-17
lines changed

test/src/com/rabbitmq/client/test/server/LoopbackUsers.java

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
package com.rabbitmq.client.test.server;
22

3-
import com.rabbitmq.client.Address;
43
import com.rabbitmq.client.AuthenticationFailureException;
5-
import com.rabbitmq.client.Connection;
64
import com.rabbitmq.client.ConnectionFactory;
75
import com.rabbitmq.tools.Host;
86
import junit.framework.TestCase;
@@ -73,19 +71,20 @@ private ConnectionFactory getFactory(String name, String addr) {
7371

7472
// Find the first IP address of a network interface that is up, not loopback, not point to point (e.g. VPN thing)
7573
private static InetAddress findRealIPAddress() throws SocketException {
76-
Enumeration<NetworkInterface> ifs = NetworkInterface.getNetworkInterfaces();
77-
while (ifs.hasMoreElements()) {
78-
NetworkInterface nif = ifs.nextElement();
79-
if (nif.isUp() && !nif.isPointToPoint() && !nif.isLoopback() && !nif.isVirtual()) {
80-
Enumeration<InetAddress> addrs = nif.getInetAddresses();
81-
while (addrs.hasMoreElements()) {
82-
InetAddress addr = addrs.nextElement();
83-
if (addr instanceof Inet4Address) {
84-
return addr;
85-
}
86-
}
87-
}
88-
}
89-
throw new RuntimeException("Could not determine real network address");
74+
throw new RuntimeException("this test will be enabled once we stop supporting Java 1.5");
75+
// Enumeration<NetworkInterface> ifs = NetworkInterface.getNetworkInterfaces();
76+
// while (ifs.hasMoreElements()) {
77+
// NetworkInterface nif = ifs.nextElement();
78+
// if (nif.isUp() && !nif.isPointToPoint() && !nif.isLoopback() && !nif.isVirtual()) {
79+
// Enumeration<InetAddress> addrs = nif.getInetAddresses();
80+
// while (addrs.hasMoreElements()) {
81+
// InetAddress addr = addrs.nextElement();
82+
// if (addr instanceof Inet4Address) {
83+
// return addr;
84+
// }
85+
// }
86+
// }
87+
// }
88+
// throw new RuntimeException("Could not determine real network address");
9089
}
9190
}

test/src/com/rabbitmq/client/test/server/ServerTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,6 @@ public static void add(TestSuite suite) {
4242
suite.addTestSuite(Shutdown.class);
4343
suite.addTestSuite(BlockedConnection.class);
4444
suite.addTestSuite(ChannelLimitNegotiation.class);
45-
suite.addTestSuite(LoopbackUsers.class);
45+
//suite.addTestSuite(LoopbackUsers.class);
4646
}
4747
}

0 commit comments

Comments
 (0)