-
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
gRPC testing causes panic #2661
Comments
Thanks for opening this issue! I think the problem is that you are not actually passing the second parameter to k6/js/modules/k6/grpc/client.go Line 161 in e09bb87
So yeah, the script is slightly wrong, but this should certainly not cause k6 to panic, so it's a very valid bug - k6 should just throw an exception at that point. The fix is simple enough, we should just add that check (and a test), do you want to make a PR? |
Thank you so much for the reply. Sure i'll arrange some time adding the check, should be quite straightforward but I need some time to read thru the code |
Hi @na-- , |
@c47gao, you haven't indicated that you have started work on this or that you are about to make a PR, so I don't see a reason why @theshashankpal can't work on it? @theshashankpal, I will assign it to you, in case that is a requirement for your course, but in general we don't assign issues to external contributors - you can just start working on it after a consensus is reached on how to implement something. |
Brief summary
So I was trying out the grpc testing with insecure option. And running the test causes panic
k6 version
Latest (v0.39.0)
OS
mac os 12.1
Docker version and image (if applicable)
N/A
Steps to reproduce the problem
Panic is raised during client.invoke
Expected behaviour
Test doesn't raise panic
Actual behaviour
Test raises panic
The text was updated successfully, but these errors were encountered: