Skip to content

Commit

Permalink
fix RackUnawareStrategyTest -- endpoint asserts 'host' is an ip addre…
Browse files Browse the repository at this point in the history
…ss (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
  • Loading branch information
jbellis committed May 12, 2009
1 parent 3aca073 commit ae70cea
Showing 1 changed file with 1 addition and 4 deletions.
Expand Up @@ -14,8 +14,6 @@

public class RackUnawareStrategyTest
{
// TODO fix these
/*
@Test
public void testBigIntegerStorageEndPoints()
{
Expand Down Expand Up @@ -55,7 +53,7 @@ private void testGetStorageEndPoints(TokenMetadata tmd, IReplicaPlacementStrateg
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);
}
Expand All @@ -70,5 +68,4 @@ private void testGetStorageEndPoints(TokenMetadata tmd, IReplicaPlacementStrateg
}
}
}
*/
}

0 comments on commit ae70cea

Please sign in to comment.