add tcp keep alive hack to net5 target (#560)

* add tcp keep alive hack to net5 target

* remove unused code

* fix ep

* Update buildtest.yaml

* fix netstandard21

* fix space

* fix net5 warning

* more comment
This commit is contained in:
Boshi Lian
2021-03-11 09:32:22 -08:00
committed by GitHub
parent d48e93c1f6
commit 655a42c6bd
8 changed files with 53 additions and 11 deletions

View File

@@ -165,7 +165,7 @@ namespace k8s.Tests
}
}
#if NETSTANDARD2_1 // The functionality under test, here, is dependent on managed HTTP / WebSocket in .NET Core 2.1 or newer.
#if NETSTANDARD2_1 || NET5_0 // The functionality under test, here, is dependent on managed HTTP / WebSocket in .NET Core 2.1 or newer.
// this test doesn't work on OSX and is inconsistent on windows
[OperatingSystemDependentFact(Exclude = OperatingSystems.OSX | OperatingSystems.Windows)]
public void Cert()
@@ -338,7 +338,7 @@ namespace k8s.Tests
}
}
}
#endif // NETSTANDARD2_1
#endif // NETSTANDARD2_1 || NET5_0
[Fact]
public void ExternalToken()

View File

@@ -1,4 +1,4 @@
#if !NETSTANDARD2_1
#if !NETSTANDARD2_1 || NET5_0
/*
* These tests are only for the netstandard version of the client (there are separate tests for netcoreapp that connect to a local test-hosted server).
*/

View File

@@ -1,4 +1,4 @@
#if !NETSTANDARD2_1
#if !NETSTANDARD2_1 || NET5_0
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
@@ -43,4 +43,4 @@ namespace k8s.Tests.Mock
}
}
#endif // !NETSTANDARD2_1
#endif // !NETSTANDARD2_1 || NET5_0