diff --git a/backend/load_tests/locustfile.py b/backend/load_tests/locustfile.py index d68617b..57f67ee 100644 --- a/backend/load_tests/locustfile.py +++ b/backend/load_tests/locustfile.py @@ -77,7 +77,7 @@ class DocuVaultUser(HttpUser): name="GET /api/documents/ (for get_document)", ) if resp.status_code == 200: - docs = resp.json() + docs = resp.json().get("items", []) if docs: doc_id = docs[0]["id"] self.client.get(