From ed01ac1aa5ff0b82b07f0262bd795b9280af6a9f Mon Sep 17 00:00:00 2001 From: Boris Stepanenko <Boris.Stepanenko@gmail.com> Date: Thu, 7 Apr 2022 14:37:58 +0300 Subject: [PATCH] test: fix comparing bool to int in cluster.test.py In commit c1c77782215e ("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 --- test/replication-py/cluster.test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/replication-py/cluster.test.py b/test/replication-py/cluster.test.py index 391f6ae5e1..8cb47cc184 100644 --- a/test/replication-py/cluster.test.py +++ b/test/replication-py/cluster.test.py @@ -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() -- GitLab