Truncate cfs between SinglePartitionSliceCommandTest tests patch by bdeggleston; reviewed by slebresne for CASSANDRA-10336
Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/c0a1cce4 Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/c0a1cce4 Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/c0a1cce4 Branch: refs/heads/trunk Commit: c0a1cce4c89d0ce816237dc240c4f62cfb0f41cf Parents: c941321 Author: Blake Eggleston <[email protected]> Authored: Tue Sep 15 08:24:58 2015 -0700 Committer: Sylvain Lebresne <[email protected]> Committed: Wed Oct 21 15:37:10 2015 +0200 ---------------------------------------------------------------------- .../apache/cassandra/db/SinglePartitionSliceCommandTest.java | 7 +++++++ 1 file changed, 7 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cassandra/blob/c0a1cce4/test/unit/org/apache/cassandra/db/SinglePartitionSliceCommandTest.java ---------------------------------------------------------------------- diff --git a/test/unit/org/apache/cassandra/db/SinglePartitionSliceCommandTest.java b/test/unit/org/apache/cassandra/db/SinglePartitionSliceCommandTest.java index 9f80023..46c7810 100644 --- a/test/unit/org/apache/cassandra/db/SinglePartitionSliceCommandTest.java +++ b/test/unit/org/apache/cassandra/db/SinglePartitionSliceCommandTest.java @@ -6,6 +6,7 @@ import java.util.Collections; import java.util.Iterator; import org.junit.Assert; +import org.junit.Before; import org.junit.BeforeClass; import org.junit.Test; @@ -66,6 +67,12 @@ public class SinglePartitionSliceCommandTest s = cfm.getColumnDefinition(new ColumnIdentifier("s", true)); } + @Before + public void truncate() + { + Keyspace.open(KEYSPACE).getColumnFamilyStore(TABLE).truncateBlocking(); + } + @Test public void staticColumnsAreFiltered() throws IOException {
