From 7a1e2e0c72c35a998bc08df16aa349dd44eebe90 Mon Sep 17 00:00:00 2001 From: Oleksii Kliukin Date: Tue, 28 Jun 2016 17:11:13 +0200 Subject: [PATCH] Fix the assert message. --- features/steps/patroni_api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/features/steps/patroni_api.py b/features/steps/patroni_api.py index 28aaa18a..dd260aab 100644 --- a/features/steps/patroni_api.py +++ b/features/steps/patroni_api.py @@ -124,7 +124,7 @@ def check_http_response(context, url, value, timeout, negate=False): time.sleep(1) else: assert False,\ - "Value {0} is {0} present in response after {1} seconds".format("not" if not negate else "", value, timeout) + "Value {0} is {1} present in response after {2} seconds".format(value, "not" if not negate else "", timeout) @then('Response on GET {url} does not contain {value} after {timeout:d} seconds')