-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Cannot extend Go slice" when modifying setup data #684
Comments
Thanks for the report, I confirmed this locally and briefly investigated the possible cause. It's strange since we use the goja's
As I recently mentioned in another somewhat related issue, we encode the result of To be fair, changes to the |
I encountered the problem while trying to figure a way of getting data from the many __VU/__ITER executions back to the teardown function. It would be nice if it were possible for the default function to return data, and for that data to be collected and passed to the teardown function. |
Unfortunately even if we fix the specific issue you pointed out ( Still, I can see the value in that functionality and the potential use cases. Please create another issue for it, since it's quite possible that if we implement the other issues I linked to, we could similarly implement this as well. Or maybe we can think of another solution that accomplishes the same things but would have better performance characteristics and be easier to implement reliably for distributed execution. For example, something messaging-related for explicit pushing of things you want to have access to later. |
Unfortunately this doesn't appear very fixable right now 😞 . We either have to change the goja internals, or, more likely, write our own generic JSON unmarshalling code that returns any JSON arrays as Considering that if we could, I'd prefer to actually make the |
When I create setup-data containing an array in the setup() function, I get an exception when I try to add to that array in either the test function or the teardown function.
This code will demonstrate the problem:
When I execute this test, I get the following in sysout:
The text was updated successfully, but these errors were encountered: