scylladb / python-driver

ScyllaDB Python Driver, originally DataStax Python Driver for Apache Cassandra
https://python-driver.docs.scylladb.com
Apache License 2.0
74 stars 42 forks source link

test_cluster.py::ClusterTests::test_idle_heartbeat: Fix failing test #218

Closed Lorak-mmk closed 1 year ago

Lorak-mmk commented 1 year ago

Recently ccm changed default smp from 1 to 2. This caused 1 of integration tests to fail. The problem is, if I understand correctly, that cluster.connect(wait_for_all_pools=True) doesn't wait for all connections to be estabilished - so additional connections are opened during the test, causing it to fail.

The best fix would be to wait for all connection, but I don't see any method doing that - if I missed any please let me know. Instead, this PR manually specifies SMP to fix the failure.