Fix for Statement has no effect
This problem and its fix was suggested by copilot, I'm just writing the cover letter. test/nodetool/test_status.py has the silly statement tokens == "?" which has no effect. Looking around the code suggested to me (and also to Copilot, nice) that the correct intent was assert tokens == "?" and not, say, tokens = "?". Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> Closes scylladb/scylladb#27659
This commit is contained in:
committed by
Botond Dénes
parent
ce3320a3ff
commit
54f3e69fdc
@@ -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:
|
||||
tokens == "?"
|
||||
assert tokens == "?"
|
||||
else:
|
||||
assert int(tokens) == len(node.tokens)
|
||||
if effective_ownership_unknown:
|
||||
|
||||
Reference in New Issue
Block a user