Skip to content

Commit 37cc21f

Browse files
committed
Make benchmark setup/teardown use minimal protocol version
1 parent b1f2a4e commit 37cc21f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

benchmarks/base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
def setup(hosts):
6262
log.info("Using 'cassandra' package from %s", cassandra.__path__)
6363

64-
cluster = Cluster(hosts)
64+
cluster = Cluster(hosts, protocol_version=1)
6565
cluster.set_core_connections_per_host(HostDistance.LOCAL, 1)
6666
try:
6767
session = cluster.connect()
@@ -89,7 +89,7 @@ def setup(hosts):
8989

9090

9191
def teardown(hosts):
92-
cluster = Cluster(hosts)
92+
cluster = Cluster(hosts, protocol_version=1)
9393
cluster.set_core_connections_per_host(HostDistance.LOCAL, 1)
9494
session = cluster.connect()
9595
session.execute("DROP KEYSPACE " + KEYSPACE)

0 commit comments

Comments
 (0)