Skip to content

Commit 6b70ced

Browse files
committed
minor cleanup
1 parent ce3ad0c commit 6b70ced

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

tests/performance/locustfiles/functions/function_run_load_test.py

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -54,16 +54,14 @@ def get_endpoint(self) -> None:
5454
)
5555

5656
# run function
57-
kwargs = {}
5857
job_input_faker = jsf.JSF(job_input_schema)
59-
kwargs["json"] = job_input_faker.generate()
60-
kwargs["headers"] = {
61-
"x-simcore-parent-project-uuid": "null",
62-
"x-simcore-parent-node-id": "null",
63-
}
64-
6558
response = self.authenticated_post(
66-
url=f"/v0/functions/{function_uid}:run", kwargs=kwargs
59+
url=f"/v0/functions/{function_uid}:run",
60+
json=job_input_faker.generate(),
61+
headers={
62+
"x-simcore-parent-project-uuid": "null",
63+
"x-simcore-parent-node-id": "null",
64+
},
6765
)
6866
response.raise_for_status()
6967
job_uid = response.json().get("uid")

0 commit comments

Comments
 (0)