use of io.grpc.testing.integration.Messages.StreamingOutputCallRequest in project grpc-java by grpc.
the class AbstractInteropTest method maxInboundSize_exact.
@Test(timeout = 10000)
public void maxInboundSize_exact() {
StreamingOutputCallRequest request = StreamingOutputCallRequest.newBuilder().addResponseParameters(ResponseParameters.newBuilder().setSize(1)).build();
int size = blockingStub.streamingOutputCall(request).next().getSerializedSize();
TestServiceGrpc.TestServiceBlockingStub stub = TestServiceGrpc.newBlockingStub(channel).withMaxInboundMessageSize(size);
stub.streamingOutputCall(request).next();
}
Aggregations