Closed jduan-highnote closed 2 years ago
Currently there's no such feature. Do you create so many gRPC mock servers for unit or it testing? Since if it's for unit testing you might want to try using InProcessGrpcMockExtension
Thanks for your quick response! I'll give the InProcessGrpcMockExtension a try. I might also add retries when the server fails to bind to a port.
Closing, since there's no further discussions.
We have lots of tests that start gRPC mock servers. Even though they all set the port to 0 so a random port is selected, there's still a chance that two tests try to use the same random port. See the screenshot below.
Is there a way to configure the mock server so it retries a few times when seeing such an error? Thanks!