Commit 53a6e000 authored by kaiyou's avatar kaiyou

Fix a typo in the http get check

parent b04c4223
Pipeline #154 passed with stage
in 57 seconds
......@@ -12,7 +12,7 @@ def get(context, url, expected_code=200, expected_string=None):
if expected_code != req.status_code:
up = False
message = "the page returned code {}".format(req.status_code)
elif req and expected_string and expected_string in req.text:
elif req and expected_string and expected_string not in req.text:
up = False
message = "string {} not found in the response".format(expected_string)
else:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment