pull/21120/head
James Newton-King 5 years ago
parent dbff2e04ba
commit 48ba78a7de
No known key found for this signature in database
GPG Key ID: A66B2F456BF5526
  1. 1
      src/csharp/Grpc.HealthCheck.Tests/HealthServiceImplTest.cs
  2. 2
      src/csharp/Grpc.HealthCheck.Tests/NUnitMain.cs
  3. 4
      src/csharp/Grpc.HealthCheck.Tests/TestResponseStreamWriter.cs

@ -114,6 +114,7 @@ namespace Grpc.HealthCheck.Tests
impl.ClearStatus("");
Assert.AreEqual(HealthCheckResponse.Types.ServingStatus.ServiceUnknown, (await nextWriteTask).Status);
Assert.IsFalse(callTask.IsCompleted);
cts.Cancel();
await callTask;
}

@ -33,7 +33,7 @@ namespace Grpc.HealthCheck.Tests
public static int Main(string[] args)
{
// Make logger immune to NUnit capturing stdout and stderr to workaround https://github.com/nunit/nunit/issues/1406.
//GrpcEnvironment.SetLogger(new ConsoleLogger());
GrpcEnvironment.SetLogger(new ConsoleLogger());
return new AutoRun(typeof(NUnitMain).GetTypeInfo().Assembly).Execute(args);
}
}

@ -1,4 +1,4 @@
#region Copyright notice and license
#region Copyright notice and license
// Copyright 2015 gRPC authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
@ -21,7 +21,7 @@ using Grpc.Health.V1;
namespace Grpc.HealthCheck.Tests
{
private class TestResponseStreamWriter : IServerStreamWriter<HealthCheckResponse>
internal class TestResponseStreamWriter : IServerStreamWriter<HealthCheckResponse>
{
private TaskCompletionSource<HealthCheckResponse> _tcs;

Loading…
Cancel
Save