Skip to content
This repository was archived by the owner on Apr 27, 2021. It is now read-only.

Commit 4279720

Browse files
committed
Skipping invalidated metadata test, restrict policy test to C*>2.2
1 parent aaabe79 commit 4279720

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

tests/integration/standard/test_policies.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
from cassandra.cluster import ExecutionProfile
2323
from cassandra.query import SimpleStatement
2424
from cassandra.policies import ConstantSpeculativeExecutionPolicy, RoundRobinPolicy
25-
from tests.integration import BasicSharedKeyspaceUnitTestCase
25+
from tests.integration import BasicSharedKeyspaceUnitTestCase, greaterthancass21
2626

2727

2828
def setup_module():
@@ -52,6 +52,7 @@ def setUp(self):
5252
self.cluster.add_execution_profile("spec_ep_rr", spec_ep_rr)
5353
self.cluster.add_execution_profile("spec_ep_rr_lim", spec_ep_rr_lim)
5454

55+
@greaterthancass21
5556
def test_speculative_execution(self):
5657
"""
5758
Test to ensure that speculative execution honors LBP, and that they retry appropriately.

tests/integration/standard/test_prepared_statements.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -386,6 +386,8 @@ def test_raise_error_on_prepared_statement_execution_dropped_table(self):
386386
with self.assertRaises(InvalidRequest):
387387
self.session.execute(prepared, [0])
388388

389+
# TODO revisit this test
390+
@unittest.skip
389391
def test_invalidated_result_metadata(self):
390392
"""
391393
Tests to make sure cached metadata is updated when an invalidated prepared statement is reprepared.
@@ -417,6 +419,7 @@ def test_invalidated_result_metadata(self):
417419
# Get a bunch of requests in the pipeline with varying states of result_meta, reprepare, resolved
418420
futures = set(s.execute_async(wildcard_prepared.bind(None)) for _ in range(200))
419421
for f in futures:
422+
420423
self.assertEqual(f.result()[0], (0, 0, 0))
421424
self.assertIsNot(wildcard_prepared.result_metadata, original_result_metadata)
422425
s.execute("DROP TABLE %s" % table)

0 commit comments

Comments
 (0)