Skip to content

Commit d68c6a4

Browse files
committed
some test fixes
1 parent 4841354 commit d68c6a4

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

cassandra/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,12 +161,12 @@ class ProtocolVersion(object):
161161

162162
V5 = 5
163163
"""
164-
v5, in beta from 3.x+. Finalised in 4.0-beta4
164+
v5, in beta from 3.x+. Finalised in 4.0-beta5
165165
"""
166166

167167
V6 = 6
168168
"""
169-
v6, in beta from 4.0-beta4
169+
v6, in beta from 4.0-beta5
170170
"""
171171

172172
DSE_V1 = 0x41

tests/integration/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ def get_supported_protocol_versions():
235235
4.0(C*) -> 6(beta),5,4,3
236236
4.0(DSE) -> DSE_v2, DSE_V1,4,3
237237
` """
238-
if CASSANDRA_VERSION >= Version('4.0-beta4'):
238+
if CASSANDRA_VERSION >= Version('4.0-beta5'):
239239
if not DSE_VERSION:
240240
return (3, 4, 5, 6)
241241
if CASSANDRA_VERSION >= Version('4.0-a'):

tests/integration/standard/test_cluster.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ def test_protocol_negotiation(self):
261261
elif DSE_VERSION and DSE_VERSION >= Version("5.1"):
262262
self.assertEqual(updated_protocol_version, cassandra.ProtocolVersion.DSE_V1)
263263
self.assertEqual(updated_cluster_version, cassandra.ProtocolVersion.DSE_V1)
264-
elif CASSANDRA_VERSION >= Version('4.0-beta4'):
264+
elif CASSANDRA_VERSION >= Version('4.0-beta5'):
265265
self.assertEqual(updated_protocol_version, cassandra.ProtocolVersion.V5)
266266
self.assertEqual(updated_cluster_version, cassandra.ProtocolVersion.V5)
267267
elif CASSANDRA_VERSION >= Version('4.0-a'):

tests/unit/test_cluster.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,8 @@ def test_protocol_downgrade_test(self):
209209
lower = ProtocolVersion.get_lower_supported(ProtocolVersion.DSE_V2)
210210
self.assertEqual(ProtocolVersion.DSE_V1, lower)
211211
lower = ProtocolVersion.get_lower_supported(ProtocolVersion.DSE_V1)
212+
self.assertEqual(ProtocolVersion.V5,lower)
213+
lower = ProtocolVersion.get_lower_supported(ProtocolVersion.V5)
212214
self.assertEqual(ProtocolVersion.V4,lower)
213215
lower = ProtocolVersion.get_lower_supported(ProtocolVersion.V4)
214216
self.assertEqual(ProtocolVersion.V3,lower)

0 commit comments

Comments
 (0)