Repository: cassandra
Updated Branches:
  refs/heads/trunk e017d89a6 -> 881e2da0a


Fix ReadCommandTest

Patch by jjirsa; reviewed by stefania for CASSANDRA-10555


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

Branch: refs/heads/trunk
Commit: 881e2da0a4c37f54fbd52ed66f080e33af02b978
Parents: e017d89
Author: Jeff Jirsa <j...@jeffjirsa.net>
Authored: Tue Oct 20 11:32:52 2015 -0400
Committer: Joshua McKenzie <jmcken...@apache.org>
Committed: Tue Oct 20 11:32:52 2015 -0400

----------------------------------------------------------------------
 test/unit/org/apache/cassandra/db/ReadCommandTest.java | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/881e2da0/test/unit/org/apache/cassandra/db/ReadCommandTest.java
----------------------------------------------------------------------
diff --git a/test/unit/org/apache/cassandra/db/ReadCommandTest.java 
b/test/unit/org/apache/cassandra/db/ReadCommandTest.java
index fcaa92f..663080b 100644
--- a/test/unit/org/apache/cassandra/db/ReadCommandTest.java
+++ b/test/unit/org/apache/cassandra/db/ReadCommandTest.java
@@ -90,6 +90,8 @@ public class ReadCommandTest
     {
         ColumnFamilyStore cfs = 
Keyspace.open(KEYSPACE).getColumnFamilyStore(CF2);
 
+        cfs.truncateBlocking();
+
         new RowUpdateBuilder(cfs.metadata, 0, ByteBufferUtil.bytes("key"))
                 .clustering("cc")
                 .add("a", ByteBufferUtil.bytes("abcd"))
@@ -119,6 +121,8 @@ public class ReadCommandTest
     {
         ColumnFamilyStore cfs = 
Keyspace.open(KEYSPACE).getColumnFamilyStore(CF2);
 
+        cfs.truncateBlocking();
+
         new RowUpdateBuilder(cfs.metadata, 0, ByteBufferUtil.bytes("key"))
                 .clustering("cc")
                 .add("a", ByteBufferUtil.bytes("abcd"))
@@ -128,7 +132,7 @@ public class ReadCommandTest
         cfs.forceBlockingFlush();
 
         new RowUpdateBuilder(cfs.metadata, 0, ByteBufferUtil.bytes("key"))
-                .clustering("cdd")
+                .clustering("dd")
                 .add("a", ByteBufferUtil.bytes("abcd"))
                 .build()
                 .apply();

Reply via email to