|
14 | 14 | import subprocess
|
15 | 15 |
|
16 | 16 | import unittest
|
| 17 | +import pytest |
17 | 18 |
|
18 | 19 | from collections import deque
|
19 | 20 | from copy import copy
|
|
42 | 43 | from tests.integration import use_cluster, get_server_versions, CASSANDRA_VERSION, \
|
43 | 44 | execute_until_pass, execute_with_long_wait_retry, get_node, MockLoggingHandler, get_unsupported_lower_protocol, \
|
44 | 45 | get_unsupported_upper_protocol, lessthanprotocolv3, protocolv6, local, CASSANDRA_IP, greaterthanorequalcass30, \
|
45 |
| - lessthanorequalcass40, DSE_VERSION, TestCluster, PROTOCOL_VERSION, xfail_scylla, incorrect_test |
| 46 | + lessthanorequalcass40, DSE_VERSION, TestCluster, PROTOCOL_VERSION, xfail_scylla, incorrect_test, SCYLLA_VERSION, \ |
| 47 | + EVENT_LOOP_MANAGER |
| 48 | + |
46 | 49 | from tests.integration.util import assert_quiescent_pool_state
|
47 | 50 | import sys
|
48 | 51 |
|
@@ -752,6 +755,7 @@ def _warning_are_issued_when_auth(self, auth_provider):
|
752 | 755 | mock_handler.get_message_count("debug", "Got ReadyMessage on new connection")
|
753 | 756 | )
|
754 | 757 |
|
| 758 | + @pytest.mark.xfail(reason="test not stable on cassandra", condition=EVENT_LOOP_MANAGER=="asyncio" and SCYLLA_VERSION is None, strict=False) |
755 | 759 | def test_idle_heartbeat(self):
|
756 | 760 | interval = 2
|
757 | 761 | cluster = TestCluster(idle_heartbeat_interval=interval,
|
@@ -831,6 +835,7 @@ def test_idle_heartbeat_disabled(self):
|
831 | 835 |
|
832 | 836 | cluster.shutdown()
|
833 | 837 |
|
| 838 | + @pytest.mark.xfail(reason="test not stable on cassandra", condition=EVENT_LOOP_MANAGER=="asyncio" and SCYLLA_VERSION is None, strict=False) |
834 | 839 | def test_pool_management(self):
|
835 | 840 | # Ensure that in_flight and request_ids quiesce after cluster operations
|
836 | 841 | cluster = TestCluster(idle_heartbeat_interval=0) # no idle heartbeat here, pool management is tested in test_idle_heartbeat
|
@@ -1439,7 +1444,7 @@ def test_session_no_cluster(self):
|
1439 | 1444 |
|
1440 | 1445 |
|
1441 | 1446 | class HostStateTest(unittest.TestCase):
|
1442 |
| - |
| 1447 | + @pytest.mark.xfail(reason="test not stable on cassandra", condition=EVENT_LOOP_MANAGER=="asyncio" and SCYLLA_VERSION is None, strict=False) |
1443 | 1448 | def test_down_event_with_active_connection(self):
|
1444 | 1449 | """
|
1445 | 1450 | Test to ensure that on down calls to clusters with connections still active don't result in
|
|
0 commit comments