diff options
author | Craig Tiller <ctiller@google.com> | 2015-06-17 12:36:53 -0700 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2015-06-17 12:36:53 -0700 |
commit | ad59999b6bd649d10f567bc923e056eb493295a8 (patch) | |
tree | afcacdaf8e608cfbfafa3a6f566b68f18af62f58 /src | |
parent | dd39fbd413ce97f99003801a6888017adde51439 (diff) | |
parent | 458158633042abaf25f729904beefc93a5622edc (diff) |
Merge branch 'we-dont-need-no-backup' of github.com:ctiller/grpc into we-dont-need-no-backup
Diffstat (limited to 'src')
-rw-r--r-- | src/csharp/Grpc.Core.Tests/ClientServerTest.cs | 32 |
1 files changed, 15 insertions, 17 deletions
diff --git a/src/csharp/Grpc.Core.Tests/ClientServerTest.cs b/src/csharp/Grpc.Core.Tests/ClientServerTest.cs index c09d0b10d4..21f94d3cf5 100644 --- a/src/csharp/Grpc.Core.Tests/ClientServerTest.cs +++ b/src/csharp/Grpc.Core.Tests/ClientServerTest.cs @@ -204,23 +204,21 @@ namespace Grpc.Core.Tests BenchmarkUtil.RunBenchmark(100, 100, () => { Calls.BlockingUnaryCall(call, "ABC", default(CancellationToken)); }); } - -// TODO(jtattermusch): temporarily commented out for #1731 -// to be uncommented along with PR #1577 -// [Test] -// public void UnknownMethodHandler() -// { -// var call = new Call<string, string>(ServiceName, NonexistentMethod, channel, Metadata.Empty); -// try -// { -// Calls.BlockingUnaryCall(call, "ABC", default(CancellationToken)); -// Assert.Fail(); -// } -// catch (RpcException e) -// { -// Assert.AreEqual(StatusCode.Unimplemented, e.Status.StatusCode); -// } -// } + + [Test] + public void UnknownMethodHandler() + { + var call = new Call<string, string>(ServiceName, NonexistentMethod, channel, Metadata.Empty); + try + { + Calls.BlockingUnaryCall(call, "ABC", default(CancellationToken)); + Assert.Fail(); + } + catch (RpcException e) + { + Assert.AreEqual(StatusCode.Unimplemented, e.Status.StatusCode); + } + } private static async Task<string> EchoHandler(ServerCallContext context, string request) { |