You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by yu...@apache.org on 2014/11/14 22:36:12 UTC
cassandra git commit: fix test throw unknown keyspace error
Repository: cassandra
Updated Branches:
refs/heads/trunk 3ad82c730 -> 105360cb1
fix test throw unknown keyspace error
Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/105360cb
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/105360cb
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/105360cb
Branch: refs/heads/trunk
Commit: 105360cb14513ee77b1d9145d7367690a3ad2dc4
Parents: 3ad82c7
Author: Yuki Morishita <yu...@apache.org>
Authored: Fri Nov 14 15:36:04 2014 -0600
Committer: Yuki Morishita <yu...@apache.org>
Committed: Fri Nov 14 15:36:04 2014 -0600
----------------------------------------------------------------------
test/unit/org/apache/cassandra/io/sstable/SSTableReaderTest.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cassandra/blob/105360cb/test/unit/org/apache/cassandra/io/sstable/SSTableReaderTest.java
----------------------------------------------------------------------
diff --git a/test/unit/org/apache/cassandra/io/sstable/SSTableReaderTest.java b/test/unit/org/apache/cassandra/io/sstable/SSTableReaderTest.java
index 8de2e75..cd85d78 100644
--- a/test/unit/org/apache/cassandra/io/sstable/SSTableReaderTest.java
+++ b/test/unit/org/apache/cassandra/io/sstable/SSTableReaderTest.java
@@ -215,13 +215,13 @@ public class SSTableReaderTest
public void testReadRateTracking()
{
// try to make sure CASSANDRA-8239 never happens again
- Keyspace keyspace = Keyspace.open("Keyspace1");
+ Keyspace keyspace = Keyspace.open(KEYSPACE1);
ColumnFamilyStore store = keyspace.getColumnFamilyStore("Standard1");
for (int j = 0; j < 10; j++)
{
ByteBuffer key = ByteBufferUtil.bytes(String.valueOf(j));
- Mutation rm = new Mutation("Keyspace1", key);
+ Mutation rm = new Mutation(KEYSPACE1, key);
rm.add("Standard1", cellname("0"), ByteBufferUtil.EMPTY_BYTE_BUFFER, j);
rm.apply();
}