Compare commits

..

1 Commits

Author SHA1 Message Date
Yaniv Kaul
ddfe3165c3 Fix for Suspicious unused loop iteration variable
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
2025-12-15 15:10:21 +02:00
2 changed files with 3 additions and 2 deletions

View File

@@ -112,7 +112,8 @@ async def test_downgrade_after_partial_upgrade(manager: ManagerClient) -> None:
# There is one node that is not upgraded. The feature should not be enabled.
for srv in servers:
assert TEST_FEATURE_NAME not in await get_enabled_features(cql, host)
srv_host = (await wait_for_cql_and_get_hosts(cql, [srv], time.time() + 60))[0]
assert TEST_FEATURE_NAME not in await get_enabled_features(cql, srv_host)
# Downgrade, in reverse order
for srv in upgrading_servers[::-1]:

View File

@@ -109,7 +109,7 @@ def validate_status_output(res, keyspace, nodes, ownership, resolve, effective_o
assert load_unit is not None
assert load == "{:.2f}".format(int(node.load) / load_multiplier[load_unit])
if token_count_unknown:
assert tokens == "?"
tokens == "?"
else:
assert int(tokens) == len(node.tokens)
if effective_ownership_unknown: