k6
k6 copied to clipboard
gRPC client do not return immediately after receiving a status
Brief summary
When testing the injection of faults in grpc protocol using the xk6-disruptor extension I notice the requests made with the k6 grpc client did not return immediately after receiving an error status but waited until the timeout specified in the invoke
options.
This behavior differs from the behavior observed with for example grpc-client-cli which returns immediately on receiving an error.
k6 version
0.42
OS
Linux
Docker version and image (if applicable)
No response
Steps to reproduce the problem
Follow the instructions) for injecting errors using the xk6-disruptor extension.
Note: Using the grpcnbin RandomError
method will not show this as it returns an empty message after setting the status code.
Expected behaviour
The invoke function returns immediately regardless of the timeout specified when invoking the grpc method.
Actual behaviour
The invoke
method waits until the timeout is expired and then returns the fault.
/Assign ✋🏻