Skip to content
Open
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
3 changes: 2 additions & 1 deletion locustgraphqlclient/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def execute(self, label, query, variables=None, type="graphql") -> Optional[dict
except (urllib.error.HTTPError, urllib.error.URLError, ValueError, JSONDecodeError) as e:
total_time = int((time.time() - start_time) * 1000)
events.request_failure.fire(
request_type=type, name=label, response_time=total_time, exception=e
request_type=type, name=label, response_time=total_time, exception=e, response_length=0
)

else:
Expand All @@ -39,6 +39,7 @@ def execute(self, label, query, variables=None, type="graphql") -> Optional[dict


class GraphQLLocust(User):
abstract = True
endpoint = ""

def __init__(self, *args, **kwargs):
Expand Down