Fix issue with test randomly failing on windows - exclude from windows runner (#434)

This commit is contained in:
Andrew Stakhov
2020-05-04 19:01:08 -04:00
committed by GitHub
parent ae9dd04a2e
commit 9bd8ed6350

View File

@@ -162,15 +162,10 @@ namespace k8s.Tests
}
#if NETCOREAPP2_1 // The functionality under test, here, is dependent on managed HTTP / WebSocket in .NET Core 2.1 or newer.
[Fact]
// this test doesn't work on OSX and is inconsistent on windows
[OperatingSystemDependentFact(Exclude = OperatingSystem.OSX | OperatingSystem.Windows)]
public void Cert()
{
if (System.Runtime.InteropServices.RuntimeInformation.IsOSPlatform(OSPlatform.OSX))
{
// TODO: This test fails on OS X for some reason. Figure out why...
return;
}
var serverCertificateData = File.ReadAllText("assets/apiserver-pfx-data.txt");
var clientCertificateKeyData = File.ReadAllText("assets/client-key-data.txt");