Commit 7e35999f authored by litaolemo's avatar litaolemo

update

parent e40a28b1
......@@ -3,7 +3,7 @@
# @File : es_locust.py
# @email : litao@igengmei.com
# @author : litao
import json
import time
from locust import HttpUser, task
......@@ -854,7 +854,7 @@ class QuickstartUser(HttpUser):
"require_field_match": false
},"size":10
}
""".replace("{query}",random.choice(query_Str_list))
""".replace("{query}",random.choice(json.dumps(query_Str_list)))
response = self.client.post('/gm-dbmw-service-read/_search', data=data, verify=False, auth=tuple(auth.split(':',1)))
# self.client.get("/hello")
......
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