mirror of https://github.com/apache/cassandra
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:
parent
3aca0737cb
commit
ae70cea79a
|
|
@ -14,8 +14,6 @@ import org.apache.cassandra.net.EndPoint;
|
||||||
|
|
||||||
public class RackUnawareStrategyTest
|
public class RackUnawareStrategyTest
|
||||||
{
|
{
|
||||||
// TODO fix these
|
|
||||||
/*
|
|
||||||
@Test
|
@Test
|
||||||
public void testBigIntegerStorageEndPoints()
|
public void testBigIntegerStorageEndPoints()
|
||||||
{
|
{
|
||||||
|
|
@ -55,7 +53,7 @@ public class RackUnawareStrategyTest
|
||||||
List<EndPoint> hosts = new ArrayList<EndPoint>();
|
List<EndPoint> hosts = new ArrayList<EndPoint>();
|
||||||
for (int i = 0; i < endPointTokens.length; i++)
|
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);
|
tmd.update(endPointTokens[i], ep);
|
||||||
hosts.add(ep);
|
hosts.add(ep);
|
||||||
}
|
}
|
||||||
|
|
@ -70,5 +68,4 @@ public class RackUnawareStrategyTest
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue