You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by br...@apache.org on 2013/01/18 20:58:54 UTC

[1/3] git commit: fix RelocateTest

fix RelocateTest


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

Branch: refs/heads/cassandra-1.2
Commit: 17adf8e4f72114d336140fac5157a35e63d1f53a
Parents: 43123d1
Author: Brandon Williams <br...@apache.org>
Authored: Fri Jan 18 13:58:50 2013 -0600
Committer: Brandon Williams <br...@apache.org>
Committed: Fri Jan 18 13:58:50 2013 -0600

----------------------------------------------------------------------
 .../org/apache/cassandra/service/RelocateTest.java |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/17adf8e4/test/unit/org/apache/cassandra/service/RelocateTest.java
----------------------------------------------------------------------
diff --git a/test/unit/org/apache/cassandra/service/RelocateTest.java b/test/unit/org/apache/cassandra/service/RelocateTest.java
index dda79c3..510d254 100644
--- a/test/unit/org/apache/cassandra/service/RelocateTest.java
+++ b/test/unit/org/apache/cassandra/service/RelocateTest.java
@@ -32,6 +32,7 @@ import java.util.Map;
 import java.util.UUID;
 
 import org.apache.cassandra.SchemaLoader;
+import org.apache.cassandra.db.SystemTable;
 import org.apache.cassandra.exceptions.ConfigurationException;
 import org.apache.cassandra.config.KSMetaData;
 import org.apache.cassandra.config.Schema;
@@ -186,6 +187,7 @@ public class RelocateTest
 
         // Create a list of the endpoint's existing tokens, and add the relocatee to it.
         List<Token> tokens = new ArrayList<Token>(tmd.getTokens(relocator));
+        SystemTable.updateTokens(tokens);
         tokens.add(relocatee);
 
         // Send a normal status, then ensure all is copesetic.