TypeError: done is not a function
when writing custom artilary extension
#1183
Mohamedemad4
started this conversation in
Artillery
Replies: 1 comment
-
hi @Mohamedemad4 👋 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Info:
In my use case I want artillery to fetch a list of resources and execute an expensive operation on one of them randomly
something like:
and the code for that function looks something like:
Now this is very much according to official extension docs
but i was getting this error:
TypeError: done is not a function
I was able to solve it by changing
(req, res, context, events, done)
to(req, res, done)
.Is the documentation outdated? or is this some weird edge case?
Beta Was this translation helpful? Give feedback.
All reactions