add coverage for AsyncStreamExtensions

pull/4421/head
Jan Tattermusch 9 years ago
parent 839e1d1324
commit 8fe3f64046
  1. 5
      src/csharp/Grpc.Core.Tests/ClientServerTest.cs

@ -155,10 +155,7 @@ namespace Grpc.Core.Tests
{
helper.ServerStreamingHandler = new ServerStreamingServerMethod<string, string>(async (request, responseStream, context) =>
{
foreach (string response in request.Split(new []{' '}))
{
await responseStream.WriteAsync(response);
}
await responseStream.WriteAllAsync(request.Split(new []{' '}));
context.ResponseTrailers.Add("xyz", "");
});

Loading…
Cancel
Save