changed method name in test.proto to more accurately reflect how the calls will be used

pull/8234/head
Noah Eisen 9 years ago
parent a27eb1d07a
commit 02e70ed120
  1. 5
      src/proto/grpc/testing/test.proto
  2. 6
      test/cpp/interop/interop_client.cc

@ -70,8 +70,9 @@ service TestService {
rpc HalfDuplexCall(stream StreamingOutputCallRequest) rpc HalfDuplexCall(stream StreamingOutputCallRequest)
returns (stream StreamingOutputCallResponse); returns (stream StreamingOutputCallResponse);
// A call that no server should implement // The test server will not implement this method. It will be used
rpc UnimplementedCall(grpc.testing.Empty) returns (grpc.testing.Empty); // to test the behavior when clients call unimplemented methods.
rpc UnimplementedMethod(grpc.testing.Empty) returns (grpc.testing.Empty);
} }
// A simple service NOT implemented at servers so clients can test for // A simple service NOT implemented at servers so clients can test for

@ -944,15 +944,15 @@ bool InteropClient::DoUnimplementedMethod() {
Empty response = Empty::default_instance(); Empty response = Empty::default_instance();
ClientContext context; ClientContext context;
gpr_log(GPR_DEBUG, "here"); Status s = serviceStub_.Get()->UnimplementedMethod(
Status s = serviceStub_.Get()->UnimplementedCall(
&context, request, &response); &context, request, &response);
if (!AssertStatusCode(s, StatusCode::UNIMPLEMENTED)) { if (!AssertStatusCode(s, StatusCode::UNIMPLEMENTED)) {
return false; return false;
} }
GPR_ASSERT(s.error_message().empty());
gpr_log(GPR_DEBUG, "unimplemented rpc done."); gpr_log(GPR_DEBUG, "unimplemented rpc done.");
return true; return true;
} }

Loading…
Cancel
Save