test.py: fix port type passed to Cassandra driver
Port is expected to be int, not str. Using a str causes errors for exception formatting. Signed-off-by: Alejo Sanchez <alejo.sanchez@scylladb.com>
This commit is contained in:
@@ -54,7 +54,7 @@ def cql(request):
|
||||
ssl_context = None
|
||||
cluster = Cluster(execution_profiles={EXEC_PROFILE_DEFAULT: profile},
|
||||
contact_points=[request.config.getoption('host')],
|
||||
port=request.config.getoption('port'),
|
||||
port=int(request.config.getoption('port')),
|
||||
# TODO: make the protocol version an option, to allow testing with
|
||||
# different versions. If we drop this setting completely, it will
|
||||
# mean pick the latest version supported by the client and the server.
|
||||
|
||||
Reference in New Issue
Block a user