[jboss-cvs] JBossAS SVN: r109706 - trunk/testsuite/src/main/org/jboss/test/cluster/defaultcfg/web/test.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Fri Dec 3 10:51:20 EST 2010


Author: pferraro
Date: 2010-12-03 10:51:19 -0500 (Fri, 03 Dec 2010)
New Revision: 109706

Modified:
   trunk/testsuite/src/main/org/jboss/test/cluster/defaultcfg/web/test/CleanShutdownTestCase.java
Log:
JBAS-8706 org.jboss.test.cluster.defaultcfg.web.test.CleanShutdownTestCase fails when run against IPv6 addresses

Modified: trunk/testsuite/src/main/org/jboss/test/cluster/defaultcfg/web/test/CleanShutdownTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/cluster/defaultcfg/web/test/CleanShutdownTestCase.java	2010-12-03 15:42:05 UTC (rev 109705)
+++ trunk/testsuite/src/main/org/jboss/test/cluster/defaultcfg/web/test/CleanShutdownTestCase.java	2010-12-03 15:51:19 UTC (rev 109706)
@@ -21,6 +21,7 @@
  */
 package org.jboss.test.cluster.defaultcfg.web.test;
 
+import java.net.InetAddress;
 import java.util.concurrent.Callable;
 import java.util.concurrent.ExecutionException;
 import java.util.concurrent.ExecutorService;
@@ -204,11 +205,11 @@
    
    private Cookie findCookie(int serverIndex, String name) throws Exception
    {
-      String domain = this.getServers()[serverIndex];
+      InetAddress address = InetAddress.getByName(this.getServers()[serverIndex]);
       
       for (Cookie cookie: this.client.getState().getCookies())
       {
-         if (cookie.getDomain().equalsIgnoreCase(domain) && cookie.getName().equals(name))
+         if (InetAddress.getByName(cookie.getDomain()).equals(address) && cookie.getName().equals(name))
          {
             return cookie;
          }



More information about the jboss-cvs-commits mailing list