Skip to content

Commit a08e737

Browse files
authored
Fix running HTTP/3 on benchmark environment (#1580)
1 parent da6dcc5 commit a08e737

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

perf/benchmarkapps/GrpcAspNetCoreServer/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ private static void ConfigureListenOptions(ListenOptions listenOptions, IConfigu
138138
}
139139
});
140140
}
141-
#if NET6_0
141+
#if NET6_0_OR_GREATER
142142
else if (protocol.Equals("h3", StringComparison.OrdinalIgnoreCase))
143143
{
144144
listenOptions.Protocols = HttpProtocols.Http1AndHttp2AndHttp3;

test/FunctionalTests/Client/ClientFactoryTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ Task<HelloReply> UnaryCall(HelloRequest request, ServerCallContext context)
8181
Assert.AreEqual("Hello world", response2.Message);
8282
}
8383

84-
#if NET6_0
84+
#if NET6_0_OR_GREATER
8585
[Test]
8686
[RequireHttp3]
8787
public async Task ClientFactory_Http3_Success()

0 commit comments

Comments
 (0)