ARTEMIS-1684 disable problematic tests
This commit is contained in:
parent
325b5f1a1b
commit
c1900e5ac3
|
@ -380,7 +380,7 @@ public class NetworkHealthCheck extends ActiveMQScheduledComponent {
|
|||
if (error) {
|
||||
ActiveMQUtilLogger.LOGGER.failedToReadFromStream(inputLine);
|
||||
} else {
|
||||
logger.trace(inputLine);
|
||||
logger.debug(inputLine);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -37,6 +37,8 @@ import org.junit.Assert;
|
|||
import org.junit.Before;
|
||||
import org.junit.Test;
|
||||
|
||||
import static org.junit.Assume.assumeTrue;
|
||||
|
||||
public class NetworkHealthTest {
|
||||
|
||||
private static final InetAddress INVALID_ADDRESS;
|
||||
|
@ -127,6 +129,7 @@ public class NetworkHealthTest {
|
|||
|
||||
@Test
|
||||
public void testCheck6() throws Exception {
|
||||
assumeTrue(purePingWorks(IPV6_LOCAL));
|
||||
NetworkHealthCheck check = addCheck(new NetworkHealthCheck(null, 100, 100));
|
||||
check.addComponent(component);
|
||||
|
||||
|
@ -161,6 +164,7 @@ public class NetworkHealthTest {
|
|||
|
||||
@Test
|
||||
public void testPings() throws Exception {
|
||||
assumeTrue(purePingWorks("127.0.0.1"));
|
||||
doCheck("127.0.0.1");
|
||||
}
|
||||
|
||||
|
@ -181,9 +185,18 @@ public class NetworkHealthTest {
|
|||
|
||||
@Test
|
||||
public void testPingsIPV6() throws Exception {
|
||||
assumeTrue(purePingWorks(IPV6_LOCAL));
|
||||
doCheck(IPV6_LOCAL);
|
||||
}
|
||||
|
||||
private boolean purePingWorks(String localaddress) throws Exception {
|
||||
try {
|
||||
return addCheck(new NetworkHealthCheck(null, 100, 100)).purePing(InetAddress.getByName(localaddress));
|
||||
} catch (Exception e) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testCheckNoNodes() throws Exception {
|
||||
NetworkHealthCheck check = addCheck(new NetworkHealthCheck());
|
||||
|
|
Loading…
Reference in New Issue