Commit 45073c09 authored by litaolemo's avatar litaolemo

update

parent 872c1446
...@@ -461,7 +461,7 @@ class QuickstartUser(FastHttpUser): ...@@ -461,7 +461,7 @@ class QuickstartUser(FastHttpUser):
# "Content-Type": "application/x-www-form-urlencoded" # "Content-Type": "application/x-www-form-urlencoded"
# } # }
with self.client.post('/gm-dbmw-answer-read/_search', json=data,verify=False, with self.client.post('/gm-dbmw-answer-read/_search', json=data,verify=False,
auth=tuple(auth.split(':', 1)),timeout=1) as response: auth=tuple(auth.split(':', 1)),timeout=1, catch_response=True) as response:
# if response.status_code != 200: # if response.status_code != 200:
# raise RescheduleTask() # raise RescheduleTask()
if "Failed" in response.text: if "Failed" in response.text:
......
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