Permalink
Browse files

fixed minor test issues, prep for snapshot release

  • Loading branch information...
1 parent 0833af9 commit 93533ba369c64f6af045bb54639acf800ca99d71 zznate committed Nov 4, 2010
@@ -87,7 +87,7 @@ public void testAddDropKeyspace() throws Exception {
cassandraCluster.addKeyspace(
new ThriftKsDef("DynKeyspace", "org.apache.cassandra.locator.SimpleStrategy", 1, Arrays.asList(cfDef)));
- String ksid2 = cassandraCluster.dropKeyspace("MyDynKeyspace");
+ String ksid2 = cassandraCluster.dropKeyspace("DynKeyspace");
assertNotNull(ksid2);
}
}
@@ -811,6 +811,7 @@ public void testMultigetCount() {
ColumnParent clp = new ColumnParent("Standard1");
SlicePredicate slicePredicate = new SlicePredicate();
SliceRange sr = new SliceRange(ByteBuffer.wrap(new byte[0]), ByteBuffer.wrap(new byte[0]), false, 150);
+ slicePredicate.setSlice_range(sr);
Map<ByteBuffer,Integer> counts = keyspace.multigetCount(keys, clp, slicePredicate);
assertEquals(5,counts.size());
assertEquals(new Integer(25),counts.entrySet().iterator().next().getValue());

0 comments on commit 93533ba

Please sign in to comment.