cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From slebre...@apache.org
Subject git commit: Fix DynamicCompositeTypeTest
Date Fri, 17 Oct 2014 11:08:54 GMT
Repository: cassandra
Updated Branches:
  refs/heads/cassandra-2.1 f4037edbf -> 049ace4c1


Fix DynamicCompositeTypeTest


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

Branch: refs/heads/cassandra-2.1
Commit: 049ace4c1847d39af5724538476971cbccce3ea9
Parents: f4037ed
Author: Sylvain Lebresne <sylvain@datastax.com>
Authored: Fri Oct 17 13:08:09 2014 +0200
Committer: Sylvain Lebresne <sylvain@datastax.com>
Committed: Fri Oct 17 13:08:09 2014 +0200

----------------------------------------------------------------------
 .../cassandra/db/marshal/DynamicCompositeTypeTest.java    | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/049ace4c/test/unit/org/apache/cassandra/db/marshal/DynamicCompositeTypeTest.java
----------------------------------------------------------------------
diff --git a/test/unit/org/apache/cassandra/db/marshal/DynamicCompositeTypeTest.java b/test/unit/org/apache/cassandra/db/marshal/DynamicCompositeTypeTest.java
index e248eae..e9c47a9 100644
--- a/test/unit/org/apache/cassandra/db/marshal/DynamicCompositeTypeTest.java
+++ b/test/unit/org/apache/cassandra/db/marshal/DynamicCompositeTypeTest.java
@@ -219,11 +219,11 @@ public class DynamicCompositeTypeTest extends SchemaLoader
 
         Iterator<Cell> iter = cf.getSortedColumns().iterator();
 
-        assert iter.next().name().equals(cname5);
-        assert iter.next().name().equals(cname4);
-        assert iter.next().name().equals(cname1); // null UUID < reversed value
-        assert iter.next().name().equals(cname3);
-        assert iter.next().name().equals(cname2);
+        assert iter.next().name().toByteBuffer().equals(cname5);
+        assert iter.next().name().toByteBuffer().equals(cname4);
+        assert iter.next().name().toByteBuffer().equals(cname1); // null UUID < reversed
value
+        assert iter.next().name().toByteBuffer().equals(cname3);
+        assert iter.next().name().toByteBuffer().equals(cname2);
     }
 
     @Test


Mime
View raw message