Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions tests/src/integration/tests/test_heartbeat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,12 @@ CASSANDRA_INTEGRATION_TEST_F(HeartbeatTests, HeartbeatFailed) {
CHECK_FAILURE;

logger_.add_critera("Timed out while waiting for response to keepalive request");
Cluster cluster =
default_cluster().with_connection_heartbeat_interval(1).with_connection_idle_timeout(5);
// Use 1 connection per host to avoid asynchronous shard-aware connection
// establishment that could race with the baseline connection count read.
Cluster cluster = default_cluster()
.with_core_connections_per_host(1)
.with_connection_heartbeat_interval(1)
.with_connection_idle_timeout(5);
connect(cluster);

cass_uint64_t initial_connections = session_.metrics().stats.total_connections;
Expand Down