make sure OrderPreservingPartitionerTest runs clean
Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/45310c06 Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/45310c06 Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/45310c06 Branch: refs/heads/cassandra-1.2 Commit: 45310c068fcc8868e3d4bdb877b2b62ec1bfdb98 Parents: e2715f9 Author: Yuki Morishita <yu...@apache.org> Authored: Wed Dec 19 15:06:11 2012 -0600 Committer: Yuki Morishita <yu...@apache.org> Committed: Wed Dec 19 15:06:11 2012 -0600 ---------------------------------------------------------------------- .../dht/OrderPreservingPartitionerTest.java | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cassandra/blob/45310c06/test/unit/org/apache/cassandra/dht/OrderPreservingPartitionerTest.java ---------------------------------------------------------------------- diff --git a/test/unit/org/apache/cassandra/dht/OrderPreservingPartitionerTest.java b/test/unit/org/apache/cassandra/dht/OrderPreservingPartitionerTest.java index 6b3aed2..80021fd 100644 --- a/test/unit/org/apache/cassandra/dht/OrderPreservingPartitionerTest.java +++ b/test/unit/org/apache/cassandra/dht/OrderPreservingPartitionerTest.java @@ -20,10 +20,15 @@ package org.apache.cassandra.dht; import org.junit.Test; -public class OrderPreservingPartitionerTest extends PartitionerTestCase<StringToken> { +import org.apache.cassandra.SchemaLoader; + +public class OrderPreservingPartitionerTest extends PartitionerTestCase<StringToken> +{ public void initPartitioner() { partitioner = new OrderPreservingPartitioner(); + // need to clear data dir + SchemaLoader.cleanupAndLeaveDirs(); } @Test