summaryrefslogtreecommitdiff
path: root/cpp/src/tests/ha_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/tests/ha_test.py')
-rwxr-xr-xcpp/src/tests/ha_test.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/src/tests/ha_test.py b/cpp/src/tests/ha_test.py
index 4606fab746..748c8ef0c1 100755
--- a/cpp/src/tests/ha_test.py
+++ b/cpp/src/tests/ha_test.py
@@ -137,7 +137,7 @@ class HaBroker(Broker):
"--max-negotiate-time=1000",
"--ha-cluster=%s"%ha_cluster]
# Add default --log-enable arguments unless args already has --log arguments.
- if not next((l for l in args if l.startswith("--log")), None):
+ if not [l for l in args if l.startswith("--log")]:
args += ["--log-enable=info+", "--log-enable=debug+:ha::"]
if ha_replicate is not None:
args += [ "--ha-replicate=%s"%ha_replicate ]