cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brandonwilli...@apache.org
Subject [02/13] git commit: fix test for 2.0
Date Fri, 25 Jul 2014 16:13:36 GMT
fix test for 2.0


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

Branch: refs/heads/trunk
Commit: 2b35d4b94affac7662858f7642880d89c9a70a31
Parents: b6d24bb
Author: Brandon Williams <brandonwilliams@apache.org>
Authored: Fri Jul 25 10:58:37 2014 -0500
Committer: Brandon Williams <brandonwilliams@apache.org>
Committed: Fri Jul 25 11:08:03 2014 -0500

----------------------------------------------------------------------
 test/unit/org/apache/cassandra/db/RecoveryManagerTest.java | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/2b35d4b9/test/unit/org/apache/cassandra/db/RecoveryManagerTest.java
----------------------------------------------------------------------
diff --git a/test/unit/org/apache/cassandra/db/RecoveryManagerTest.java b/test/unit/org/apache/cassandra/db/RecoveryManagerTest.java
index 7dbdf84..389bf20 100644
--- a/test/unit/org/apache/cassandra/db/RecoveryManagerTest.java
+++ b/test/unit/org/apache/cassandra/db/RecoveryManagerTest.java
@@ -136,7 +136,7 @@ public class RecoveryManagerTest extends SchemaLoader
         Date date = CommitLogArchiver.format.parse("2112:12:12 12:12:12");
         long timeMS = date.getTime();
 
-        Keyspace keyspace1 = Keyspace.open(KEYSPACE1);
+        Keyspace keyspace1 = Keyspace.open("Keyspace1");
         DecoratedKey dk = Util.dk("dkey");
 
         // Col 0 and 9 are the only ones to be recovered
@@ -148,9 +148,9 @@ public class RecoveryManagerTest extends SchemaLoader
             else
                 ts = TimeUnit.MILLISECONDS.toMicros(timeMS + (i * 1000));
 
-            ColumnFamily cf = ArrayBackedSortedColumns.factory.create(KEYSPACE1, "Standard1");
+            ColumnFamily cf = ArrayBackedSortedColumns.factory.create("Keyspace1", "Standard1");
             cf.addColumn(column("name-" + i, "value", ts));
-            Mutation rm = new Mutation(KEYSPACE1, dk.getKey(), cf);
+            RowMutation rm = new RowMutation("Keyspace1", dk.key, cf);
             rm.apply();
         }
 


Mime
View raw message