Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docreader/locust-test/locustfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def backend_reprocess(self):

headers = {'Content-Type': 'application/json'}

with self.client.post("/api/v2/transaction/start", json={"privateKey": private_key, 'metadata': {}}, headers=headers) as response:
with self.client.post("/api/v2/transaction/start", json={"privateKey": private_key, 'metadata': {}}, headers=headers, catch_response=True) as response:
res_json = json.loads(response.text)
transaction_id = res_json["transactionId"]
self.client.post(f"/api/v2/transaction/{transaction_id}", headers={'x-client-key': public_key},
Expand Down
2 changes: 1 addition & 1 deletion faceapi/locust-test/locustfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def liveness(self):

headers = {'Content-Type': 'application/json'}

with self.client.post("/api/v2/liveness/start", data=contents_start_liveness, headers=headers) as response:
with self.client.post("/api/v2/liveness/start", data=contents_start_liveness, headers=headers, catch_response=True) as response:
res_json = json.loads(response.text)
transaction_id = res_json["transactionId"]
self.client.post(f"/api/v2/liveness?transactionId={transaction_id}",
Expand Down