From 1387226fe00c2f60a85d6cf42ca8de2000e2b5ec Mon Sep 17 00:00:00 2001 From: Jan Tattermusch Date: Wed, 13 Nov 2019 11:25:18 -0500 Subject: [PATCH] reduce amount of logs generated by ExternalDnsWithTracingClientServerTest --- .../ExternalDnsWithTracingClientServerTest.cs | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/csharp/Grpc.IntegrationTesting/ExternalDnsWithTracingClientServerTest.cs b/src/csharp/Grpc.IntegrationTesting/ExternalDnsWithTracingClientServerTest.cs index f9fdcc3f9c9..f6663b06188 100644 --- a/src/csharp/Grpc.IntegrationTesting/ExternalDnsWithTracingClientServerTest.cs +++ b/src/csharp/Grpc.IntegrationTesting/ExternalDnsWithTracingClientServerTest.cs @@ -31,7 +31,7 @@ using NUnit.Framework; namespace Grpc.IntegrationTesting { /// - /// 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);