|
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 |
|
@@ -753,6 +756,7 @@ def _warning_are_issued_when_auth(self, auth_provider): |
753 | 756 | mock_handler.get_message_count("debug", "Got ReadyMessage on new connection") |
754 | 757 | ) |
755 | 758 |
|
| 759 | + @pytest.mark.xfail(reason="test not stable on cassandra", condition=EVENT_LOOP_MANAGER=="asyncio" and SCYLLA_VERSION is None, strict=False) |
756 | 760 | def test_idle_heartbeat(self): |
757 | 761 | interval = 2 |
758 | 762 | cluster = TestCluster(idle_heartbeat_interval=interval, |
@@ -832,6 +836,7 @@ def test_idle_heartbeat_disabled(self): |
832 | 836 |
|
833 | 837 | cluster.shutdown() |
834 | 838 |
|
| 839 | + @pytest.mark.xfail(reason="test not stable on cassandra", condition=EVENT_LOOP_MANAGER=="asyncio" and SCYLLA_VERSION is None, strict=False) |
835 | 840 | def test_pool_management(self): |
836 | 841 | # Ensure that in_flight and request_ids quiesce after cluster operations |
837 | 842 | cluster = TestCluster(idle_heartbeat_interval=0) # no idle heartbeat here, pool management is tested in test_idle_heartbeat |
@@ -1440,7 +1445,7 @@ def test_session_no_cluster(self): |
1440 | 1445 |
|
1441 | 1446 |
|
1442 | 1447 | class HostStateTest(unittest.TestCase): |
1443 | | - |
| 1448 | + @pytest.mark.xfail(reason="test not stable on cassandra", condition=EVENT_LOOP_MANAGER=="asyncio" and SCYLLA_VERSION is None, strict=False) |
1444 | 1449 | def test_down_event_with_active_connection(self): |
1445 | 1450 | """ |
1446 | 1451 | Test to ensure that on down calls to clusters with connections still active don't result in |
|
0 commit comments