diff options
author | Craig Tiller <ctiller@google.com> | 2015-06-17 11:19:45 -0700 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2015-06-17 11:19:45 -0700 |
commit | 458158633042abaf25f729904beefc93a5622edc (patch) | |
tree | 2c8df53a31dd9359b6105b619e1022e975beeae7 /src | |
parent | 831b4e0fdc4abf75e26c1d6c04279968b548677e (diff) | |
parent | 797b875ef2906aa32c4b0ce8e6eba646fb901261 (diff) |
Merge pull request #21 from jtattermusch/we-dont-need-no-backup-undo-hotfix
undo hotfix from #1731
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) { |