Skip to content

Commit 8d1f8d7

Browse files
author
caofan
committed
cookie is headache
1 parent b9b84ac commit 8d1f8d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

concurrent_test/concurrent_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,14 @@ def execute_http(i):
4949
url = request_json['url']
5050
method = request_json['method']
5151
request_headers = handle_json_str_value(request_json['headers'])
52-
executeStartTime = datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S.%f')
5352
request_headers['Cookie'] = init_cookie
5453
request_body = handle_json_str_value(request_json['body'])
5554
response_body = {
5655
"status": -1,
5756
"msg": "接口执行失败",
5857
"data": "请检查接口是否返回JSON格式的相应数据, 以及抛出未经处理的特殊异常"
5958
}
59+
executeStartTime = datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S.%f')
6060
try:
6161
response = requests.request(method, url, headers=request_headers, json=request_body, timeout=3, verify=False)
6262
# JSON标准格式

0 commit comments

Comments
 (0)