Skip to content
Snippets Groups Projects
Commit ed01ac1a authored by Boris Stepanenko's avatar Boris Stepanenko Committed by Vladimir Davydov
Browse files

test: fix comparing bool to int in cluster.test.py

In commit c1c77782
("replication: fix bootstrap failing with ER_READONLY")
seek_once was changed to seek_wait. Seek_once returned a non-negative int
on success and -1 if failed, seek_wait returns True on success and
False if failed. Therefore no need to compare it to 0 anymore.

NO_DOC=Minor fix in test
NO_CHANGELOG=Minor fix in test
parent 0d9344ef
No related branches found
No related tags found
No related merge requests found
......@@ -237,7 +237,7 @@ failed.name = "failed"
failed.deploy(True, wait=False)
line = "ER_READONLY"
if failed.logfile_pos.seek_wait(line) >= 0:
if failed.logfile_pos.seek_wait(line):
print("'{}' exists in server log".format(line))
failed.stop()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment