Skip to content

ServiceTestStub methods not implemented #339

@cepages

Description

@cepages

I'm trying to test my grpc layer using ...ServiceTestStub.

If the rpc has a stream I can create all needed to test it. Also If the rpc doesn't have a stream but only if I use the synchronous method.

If I implement the asynchronous call I get an exception fatalError("not implemented")

In the code generated for the stubs seems that there is not implementation for this type of method:

  func list_protocols(_ request: Xz_Rpc_Protocol_ListProtocolsRequest, completion: @escaping (Xz_Rpc_Protocol_ListProtocolsResponse?, CallResult) -> Void) throws -> Xz_Rpc_Protocol_ProtocolServicelist_protocolsCall {
    fatalError("not implemented")
  }

Do I have to create the stub manually to test this type of rpc's?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions