You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by sl...@apache.org on 2014/02/25 10:49:56 UTC

git commit: Fix unit test post-merge

Repository: cassandra
Updated Branches:
  refs/heads/cassandra-2.1 3d9305320 -> e0857f2dc


Fix unit test post-merge


Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/e0857f2d
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/e0857f2d
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/e0857f2d

Branch: refs/heads/cassandra-2.1
Commit: e0857f2dc6d2ad1a35a88a4f33c4d49bd0186727
Parents: 3d93053
Author: Sylvain Lebresne <sy...@datastax.com>
Authored: Tue Feb 25 10:49:48 2014 +0100
Committer: Sylvain Lebresne <sy...@datastax.com>
Committed: Tue Feb 25 10:49:48 2014 +0100

----------------------------------------------------------------------
 test/unit/org/apache/cassandra/service/QueryPagerTest.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/e0857f2d/test/unit/org/apache/cassandra/service/QueryPagerTest.java
----------------------------------------------------------------------
diff --git a/test/unit/org/apache/cassandra/service/QueryPagerTest.java b/test/unit/org/apache/cassandra/service/QueryPagerTest.java
index 84f51f4..26295af 100644
--- a/test/unit/org/apache/cassandra/service/QueryPagerTest.java
+++ b/test/unit/org/apache/cassandra/service/QueryPagerTest.java
@@ -169,7 +169,7 @@ public class QueryPagerTest extends SchemaLoader
                 continue;
 
             ByteBuffer expected = names[i++];
-            assertEquals("column " + i + " doesn't match: " + toString(r.cf), expected, c.name());
+            assertEquals("column " + i + " doesn't match: " + toString(r.cf), expected, c.name().toByteBuffer());
         }
     }
 
@@ -337,7 +337,7 @@ public class QueryPagerTest extends SchemaLoader
         String keyspace = "cql_keyspace";
         String table = "table2";
         ColumnFamilyStore cfs = Keyspace.open(keyspace).getColumnFamilyStore(table);
-        CompositeType ct = (CompositeType)cfs.metadata.comparator;
+        CompositeType ct = (CompositeType)cfs.metadata.comparator.asAbstractType();
 
         // Insert rows but with a tombstone as last cell
         for (int i = 0; i < 5; i++)