You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by al...@apache.org on 2013/06/01 23:47:32 UTC
git commit: Fix
test_thrift_server.TestMutations.test_describe_token_map
Updated Branches:
refs/heads/cassandra-1.2 079ae68fb -> 452b1bef5
Fix test_thrift_server.TestMutations.test_describe_token_map
Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/452b1bef
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/452b1bef
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/452b1bef
Branch: refs/heads/cassandra-1.2
Commit: 452b1bef56d150085ad6a9f0e758c112f2c07eec
Parents: 079ae68
Author: Aleksey Yeschenko <al...@apache.org>
Authored: Sun Jun 2 00:47:19 2013 +0300
Committer: Aleksey Yeschenko <al...@apache.org>
Committed: Sun Jun 2 00:47:19 2013 +0300
----------------------------------------------------------------------
test/system/test_thrift_server.py | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cassandra/blob/452b1bef/test/system/test_thrift_server.py
----------------------------------------------------------------------
diff --git a/test/system/test_thrift_server.py b/test/system/test_thrift_server.py
index 20fcacb..dbbc1bf 100644
--- a/test/system/test_thrift_server.py
+++ b/test/system/test_thrift_server.py
@@ -1244,13 +1244,13 @@ class TestMutations(ThriftTester):
assert list(client.describe_ring('Keyspace1'))[0].endpoints == ['127.0.0.1']
def test_describe_token_map(self):
- # test/conf/cassandra.yaml specifies org.apache.cassandra.dht.CollatingOrderPreservingPartitioner
- # which uses BytesToken, so this just tests that the string representation of the token
+ # test/conf/cassandra.yaml specifies org.apache.cassandra.dht.ByteOrderedPartitioner
+ # which uses BytesToken, so this just tests that the string representation of the token
# matches a regex pattern for BytesToken.toString().
ring = client.describe_token_map().items()
assert len(ring) == 1
token, node = ring[0]
- assert re.match("^Token\(bytes\[[0-9A-Fa-f]{32}\]\)", token)
+ assert re.match("[0-9A-Fa-f]{32}", token)
assert node == '127.0.0.1'
def test_describe_partitioner(self):