aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/csharp/Grpc.Examples.Tests/MathClientServerTests.cs
diff options
context:
space:
mode:
authorGravatar Jan Tattermusch <jtattermusch@google.com>2017-04-20 11:39:37 +0200
committerGravatar Jan Tattermusch <jtattermusch@google.com>2017-04-20 11:48:58 +0200
commit7c7865b0e12d1f2c93bc57b4ab825bb8ddba2b2e (patch)
tree251d03dae3b03aaa9be8cd60f4c7e48c1b9bea9d /src/csharp/Grpc.Examples.Tests/MathClientServerTests.cs
parentfa729ed914e357e7779afd7a0d77dd4dc1c3dfa8 (diff)
eliminate crosstalk between C# tests
Diffstat (limited to 'src/csharp/Grpc.Examples.Tests/MathClientServerTests.cs')
-rw-r--r--src/csharp/Grpc.Examples.Tests/MathClientServerTests.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/csharp/Grpc.Examples.Tests/MathClientServerTests.cs b/src/csharp/Grpc.Examples.Tests/MathClientServerTests.cs
index 50dacc2eaa..02bcd18cb5 100644
--- a/src/csharp/Grpc.Examples.Tests/MathClientServerTests.cs
+++ b/src/csharp/Grpc.Examples.Tests/MathClientServerTests.cs
@@ -55,7 +55,8 @@ namespace Math.Tests
[TestFixtureSetUp]
public void Init()
{
- server = new Server
+ // Disable SO_REUSEPORT to prevent https://github.com/grpc/grpc/issues/10755
+ server = new Server(new[] { new ChannelOption(ChannelOptions.SoReuseport, 0) })
{
Services = { Math.BindService(new MathServiceImpl()) },
Ports = { { Host, ServerPort.PickUnused, ServerCredentials.Insecure } }