Skip to content

Commit d12f6c0

Browse files
committed
do not use protocol version and set_core_connections_per_host in setup/teardown
1 parent 5254f73 commit d12f6c0

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

benchmarks/base.py

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

66-
cluster = Cluster(hosts, protocol_version=1)
67-
cluster.set_core_connections_per_host(HostDistance.LOCAL, 1)
66+
cluster = Cluster(hosts)
6867
try:
6968
session = cluster.connect()
7069

@@ -91,8 +90,7 @@ def setup(hosts):
9190

9291

9392
def teardown(hosts):
94-
cluster = Cluster(hosts, protocol_version=1)
95-
cluster.set_core_connections_per_host(HostDistance.LOCAL, 1)
93+
cluster = Cluster(hosts)
9694
session = cluster.connect()
9795
session.execute("DROP KEYSPACE " + KEYSPACE)
9896
cluster.shutdown()

0 commit comments

Comments
 (0)