Skip to content

Commit 689bb33

Browse files
committed
json decode string before it sending it via client
1 parent 2053472 commit 689bb33

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/performance/locustfiles/deployment_max_rps_single_endpoint.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
#
1010

1111

12+
import json
1213
from collections.abc import Callable
1314

1415
from common.base_user import OsparcWebUserBase
@@ -50,7 +51,7 @@ def get_endpoint(self) -> None:
5051

5152
kwargs = {}
5253
if len(self.environment.parsed_options.body) > 0:
53-
kwargs["data"] = self.environment.parsed_options.body
54+
kwargs["json"] = json.loads(self.environment.parsed_options.body)
5455
method(self.environment.parsed_options.endpoint, **kwargs)
5556

5657

0 commit comments

Comments
 (0)