<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,7 +1,9 @@
 package net.spy.memcached;
 
 import java.net.InetSocketAddress;
+import java.util.HashSet;
 import java.util.List;
+import java.util.Set;
 
 import junit.framework.TestCase;
 
@@ -94,7 +96,12 @@ public class AddrUtilTest extends TestCase {
 		List&lt;InetSocketAddress&gt; addrs=
 			AddrUtil.getAddresses(&quot;::1:80&quot;);
 		assertEquals(1, addrs.size());
-		assertEquals(&quot;localhost&quot;, addrs.get(0).getHostName());
+
+	        Set&lt;String&gt; validLocalhostNames=new HashSet&lt;String&gt;();
+		validLocalhostNames.add(&quot;localhost&quot;);
+		validLocalhostNames.add(&quot;ip6-localhost&quot;);
+		validLocalhostNames.add(&quot;localhost6.localdomain6&quot;);
+		assert(validLocalhostNames.contains(addrs.get(0).getHostName()));
 		assertEquals(80, addrs.get(0).getPort());
 	}
 }</diff>
      <filename>src/test/java/net/spy/memcached/AddrUtilTest.java</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>720189210dbde12c7bfb8cb2fd5dc16e12a88756</id>
    </parent>
  </parents>
  <author>
    <name>Blair Zajac</name>
    <email>blair@orcaware.com</email>
  </author>
  <url>http://github.com/dustin/java-memcached-client/commit/7831c780826f137607737a922d22a5ebf9b23b92</url>
  <id>7831c780826f137607737a922d22a5ebf9b23b92</id>
  <committed-date>2009-11-06T09:46:13-08:00</committed-date>
  <authored-date>2009-11-06T08:55:41-08:00</authored-date>
  <message>Fix AddrUtilTest#testIPv6Host() hostname assertion.

This broke on operating systems where the IPv6 localhost is not listed
in /etc/hosts as &quot;localhost&quot; but as &quot;ip6-localhost&quot; for Ubuntu or
&quot;localhost6.localdomain6&quot; for Centos 5 and Foresight Linux.</message>
  <tree>a4d36e0c364ca1e318428d297c91a0c63e9d1158</tree>
  <committer>
    <name>Dustin Sallings</name>
    <email>dustin@spy.net</email>
  </committer>
</commit>
