File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff 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 :
Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments