reduce amount of logs generated by ExternalDnsWithTracingClientServerTest

pull/21179/head
Jan Tattermusch 5 years ago
parent 970f703337
commit 1387226fe0
  1. 12
      src/csharp/Grpc.IntegrationTesting/ExternalDnsWithTracingClientServerTest.cs

@ -31,7 +31,7 @@ using NUnit.Framework;
namespace Grpc.IntegrationTesting
{
/// <summary>
/// See https://github.com/grpc/issues/18074, this test is meant to
/// See https://github.com/grpc/grpc/issues/18074, this test is meant to
/// try to trigger the described bug.
/// Runs interop tests in-process, with that client using a target
/// name that using a target name that triggers interaction with
@ -48,9 +48,9 @@ namespace Grpc.IntegrationTesting
public void Init()
{
// TODO(https://github.com/grpc/grpc/issues/14963): on linux, setting
// these environment variables might not actually have any affect.
// these environment variables might not actually have any effect.
// This is OK because we only really care about running this test on
// Windows, however, a fix made for $14963 should be applied here.
// Windows, however, a fix made for #14963 should be applied here.
Environment.SetEnvironmentVariable("GRPC_TRACE", "all");
Environment.SetEnvironmentVariable("GRPC_VERBOSITY", "DEBUG");
newLogger = new SocketUsingLogger(GrpcEnvironment.Logger);
@ -59,10 +59,12 @@ namespace Grpc.IntegrationTesting
server = new Server(new[] { new ChannelOption(ChannelOptions.SoReuseport, 0) })
{
Services = { TestService.BindService(new TestServiceImpl()) },
Ports = { { "[::1]", ServerPort.PickUnused, ServerCredentials.Insecure } }
Ports = { { "[::1]", ServerPort.PickUnused, ServerCredentials.Insecure } },
// reduce the number of request call tokens to
// avoid flooding the logs with token-related messages
RequestCallTokensPerCompletionQueue = 3,
};
server.Start();
int port = server.Ports.Single().BoundPort;
channel = new Channel("loopback6.unittest.grpc.io", port, ChannelCredentials.Insecure);
client = new TestService.TestServiceClient(channel);

Loading…
Cancel
Save