When thrown from a mocked handler, leads to ugrpc::client::RpcInterruptedError
.
- Note
- Exported as
pytest_userver.grpc.TimeoutError
.
Example:
async def test_timeout_fail(service_client, grpc_mockserver):
@grpc_mockserver(greeter_services.GreeterServiceServicer.SayHello)
async def mock_say_hello(request, context):
await service_client.run_task('call-say-hello')
ex_info.match("'samples.api.GreeterService/SayHello' failed: interrupted at Testsuite timeout")
Definition at line 10 of file _mocked_errors.py.
◆ ERROR_CODE
str pytest_userver.grpc._mocked_errors.TimeoutError.ERROR_CODE = 'timeout' |
|
static |
The documentation for this class was generated from the following file: