Skip to content

Commit 4ae7d7c

Browse files
author
Leo Park
committed
test commit
1 parent 97c5077 commit 4ae7d7c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

modules/requests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ def upload_batch(upload_data_txt):
105105

106106
result = json.loads(response.body.decode("utf-8"))
107107
res_txt = "OK" if not result["errors"] else "FAILED"
108+
print(result)
108109
took = int(result["took"])
109110
logging.info(
110111
"Upload: %s - upload took: %5dms, total docs uploaded: %7d",
@@ -160,7 +161,6 @@ def initial_search():
160161
}
161162

162163
body = json.dumps(query)
163-
print(body)
164164
request_parameters = request_https_parameters(url, "POST", body)
165165

166166
try:

search_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,12 @@ def main():
4444
if options.action in ("generate_data", "all"):
4545
logging.info("***Start Data Generate Test***")
4646
time.sleep(1)
47-
tornado.ioloop.IOLoop.instance().run_sync(generate_test_data)
47+
generate_test_data()
4848

4949
if options.action in ("query_all", "all"):
5050
logging.info("***Start Query All Test***")
5151
time.sleep(1)
52-
tornado.ioloop.IOLoop.instance().run_sync(query_all)
52+
query_all()
5353

5454
if options.action == "custom_query":
5555
logging.info("***Start Query test by using '%s'***", options.json_path)

0 commit comments

Comments
 (0)