You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by co...@apache.org on 2016/01/11 15:09:17 UTC

cxf git commit: Re-enabling test

Repository: cxf
Updated Branches:
  refs/heads/master 9a9e0a8a3 -> 98aee1f31


Re-enabling test


Project: http://git-wip-us.apache.org/repos/asf/cxf/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/98aee1f3
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/98aee1f3
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/98aee1f3

Branch: refs/heads/master
Commit: 98aee1f3196a6b86dcccbc8f1b0124fd9c532d60
Parents: 9a9e0a8
Author: Colm O hEigeartaigh <co...@apache.org>
Authored: Mon Jan 11 14:09:09 2016 +0000
Committer: Colm O hEigeartaigh <co...@apache.org>
Committed: Mon Jan 11 14:09:09 2016 +0000

----------------------------------------------------------------------
 .../org/apache/cxf/systest/http_jetty/EngineLifecycleTest.java   | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/98aee1f3/systests/transports/src/test/java/org/apache/cxf/systest/http_jetty/EngineLifecycleTest.java
----------------------------------------------------------------------
diff --git a/systests/transports/src/test/java/org/apache/cxf/systest/http_jetty/EngineLifecycleTest.java b/systests/transports/src/test/java/org/apache/cxf/systest/http_jetty/EngineLifecycleTest.java
index ae45f51..2c3c099 100644
--- a/systests/transports/src/test/java/org/apache/cxf/systest/http_jetty/EngineLifecycleTest.java
+++ b/systests/transports/src/test/java/org/apache/cxf/systest/http_jetty/EngineLifecycleTest.java
@@ -58,9 +58,7 @@ import org.springframework.core.io.Resource;
 /**
  * This class tests starting up and shutting down the embedded server when there
  * is extra jetty configuration.
- * This test is ignored by default as it is continually failing on Jenkins.
  */
-@org.junit.Ignore
 public class EngineLifecycleTest extends Assert {
     private static final String PORT1 = TestUtil.getPortNumber(EngineLifecycleTest.class, 1);
     private static final String PORT2 = TestUtil.getPortNumber(EngineLifecycleTest.class, 2);
@@ -184,7 +182,7 @@ public class EngineLifecycleTest extends Assert {
         
     private void verifyNoServer(String port) {
         try {
-            Socket socket = new Socket(InetAddress.getLocalHost(), Integer.parseInt(port));
+            Socket socket = new Socket(InetAddress.getLoopbackAddress().getHostName(), Integer.parseInt(port));
             socket.close();
         } catch (UnknownHostException e) {
             fail("Unknown host for local address");