temporary hotfix before #1577 is in

pull/1731/head^2
Jan Tattermusch 10 years ago
parent 44a1dd36f5
commit c0e3a6682f
  1. 30
      src/csharp/Grpc.Core.Tests/ClientServerTest.cs

@ -205,20 +205,22 @@ namespace Grpc.Core.Tests
() => { Calls.BlockingUnaryCall(call, "ABC", default(CancellationToken)); }); () => { Calls.BlockingUnaryCall(call, "ABC", default(CancellationToken)); });
} }
[Test] // TODO(jtattermusch): temporarily commented out for #1731
public void UnknownMethodHandler() // to be uncommented along with PR #1577
{ // [Test]
var call = new Call<string, string>(ServiceName, NonexistentMethod, channel, Metadata.Empty); // public void UnknownMethodHandler()
try // {
{ // var call = new Call<string, string>(ServiceName, NonexistentMethod, channel, Metadata.Empty);
Calls.BlockingUnaryCall(call, "ABC", default(CancellationToken)); // try
Assert.Fail(); // {
} // Calls.BlockingUnaryCall(call, "ABC", default(CancellationToken));
catch (RpcException e) // Assert.Fail();
{ // }
Assert.AreEqual(StatusCode.Unimplemented, e.Status.StatusCode); // catch (RpcException e)
} // {
} // Assert.AreEqual(StatusCode.Unimplemented, e.Status.StatusCode);
// }
// }
private static async Task<string> EchoHandler(ServerCallContext context, string request) private static async Task<string> EchoHandler(ServerCallContext context, string request)
{ {

Loading…
Cancel
Save