Skip to content

Commit c18b15a

Browse files
authored
Merge pull request #697 from datastax/errors_jenkins
Fixed some tests in jenkins
2 parents 797008d + 2ab7e14 commit c18b15a

4 files changed

Lines changed: 9 additions & 3 deletions

File tree

tests/integration/standard/test_cluster.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -879,7 +879,7 @@ def test_add_profile_timeout(self):
879879
self.assertEqual(set(h.address for h in pools), set(('127.0.0.1',)))
880880

881881
node2 = ExecutionProfile(load_balancing_policy=WhiteListRoundRobinPolicy(['127.0.0.2']))
882-
self.assertRaises(cassandra.OperationTimedOut, cluster.add_execution_profile, 'node2', node2, pool_wait_timeout=0.0000001)
882+
self.assertRaises(cassandra.OperationTimedOut, cluster.add_execution_profile, 'node2', node2, pool_wait_timeout=0.000000001)
883883

884884

885885
class LocalHostAdressTranslator(AddressTranslator):

tests/integration/standard/test_metadata.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
BasicSegregatedKeyspaceUnitTestCase, BasicSharedKeyspaceUnitTestCase, BasicExistingKeyspaceUnitTestCase, drop_keyspace_shutdown_cluster, CASSANDRA_VERSION, \
3838
BasicExistingSegregatedKeyspaceUnitTestCase, dseonly, DSE_VERSION, get_supported_protocol_versions, greaterthanorequalcass30
3939

40+
from tests.integration import greaterthancass21
4041

4142
def setup_module():
4243
use_singledc()
@@ -1047,6 +1048,7 @@ def test_export_keyspace_schema_udts(self):
10471048

10481049
cluster.shutdown()
10491050

1051+
@greaterthancass21
10501052
def test_case_sensitivity(self):
10511053
"""
10521054
Test that names that need to be escaped in CREATE statements are

tests/integration/standard/test_metrics.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,8 +363,12 @@ def test_metrics_per_cluster(self):
363363
ra.remove_ra(self.session)
364364

365365
# Make sure a poorly coded RA doesn't cause issues
366-
RequestAnalyzer(self.session, throw_on_success=False, throw_on_fail=True)
366+
ra = RequestAnalyzer(self.session, throw_on_success=False, throw_on_fail=True)
367367
self.session.execute("SELECT release_version FROM system.local")
368+
369+
ra.remove_ra(self.session)
370+
371+
RequestAnalyzer(self.session, throw_on_success=True)
368372
try:
369373
self.session.execute("nonesense")
370374
except SyntaxException:

tests/integration/standard/test_query.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def test_row_error_message(self):
8383
self.session.execute(ss)
8484
with self.assertRaises(DriverException) as context:
8585
self.session.execute("SELECT * FROM {0}.{1}".format(self.keyspace_name, self.function_table_name))
86-
self.assertIn("Failed decoding result column", context.exception.message)
86+
self.assertIn("Failed decoding result column", str(context.exception))
8787

8888
def test_trace_id_to_resultset(self):
8989

0 commit comments

Comments
 (0)