cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From slebre...@apache.org
Subject git commit: Fix tests
Date Thu, 02 Oct 2014 11:25:58 GMT
Repository: cassandra
Updated Branches:
  refs/heads/trunk 4bb8f14a5 -> dd8c129a9


Fix tests


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

Branch: refs/heads/trunk
Commit: dd8c129a90becd44365210cf4613e2715445a4e4
Parents: 4bb8f14
Author: Sylvain Lebresne <sylvain@datastax.com>
Authored: Thu Oct 2 13:25:52 2014 +0200
Committer: Sylvain Lebresne <sylvain@datastax.com>
Committed: Thu Oct 2 13:25:52 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/dd8c129a/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 d36150a..05519af 100644
--- a/test/unit/org/apache/cassandra/db/marshal/DynamicCompositeTypeTest.java
+++ b/test/unit/org/apache/cassandra/db/marshal/DynamicCompositeTypeTest.java
@@ -236,11 +236,11 @@ public class DynamicCompositeTypeTest
 
         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