fix RackUnawareStrategyTest -- endpoint asserts 'host' is an ip address (to make sure we're not mixing hostnames in again) so create a suitable fake IP for the test. patch by jbellis for CASSANDRA-163

git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@774097 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jonathan Ellis 2009-05-12 21:26:42 +00:00
parent 3aca0737cb
commit ae70cea79a
1 changed files with 1 additions and 4 deletions

View File

@ -14,8 +14,6 @@ import org.apache.cassandra.net.EndPoint;
public class RackUnawareStrategyTest
{
// TODO fix these
/*
@Test
public void testBigIntegerStorageEndPoints()
{
@ -55,7 +53,7 @@ public class RackUnawareStrategyTest
List<EndPoint> hosts = new ArrayList<EndPoint>();
for (int i = 0; i < endPointTokens.length; i++)
{
EndPoint ep = new EndPoint(String.valueOf(i), 7001);
EndPoint ep = new EndPoint("127.0.0." + String.valueOf(i + 1), 7001);
tmd.update(endPointTokens[i], ep);
hosts.add(ep);
}
@ -70,5 +68,4 @@ public class RackUnawareStrategyTest
}
}
}
*/
}