Skip to content

Commit 9bd8ed6

Browse files
authored
Fix issue with test randomly failing on windows - exclude from windows runner (#434)
1 parent ae9dd04 commit 9bd8ed6

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

tests/KubernetesClient.Tests/AuthTests.cs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -162,15 +162,10 @@ public void BasicAuth()
162162
}
163163

164164
#if NETCOREAPP2_1 // The functionality under test, here, is dependent on managed HTTP / WebSocket in .NET Core 2.1 or newer.
165-
[Fact]
165+
// this test doesn't work on OSX and is inconsistent on windows
166+
[OperatingSystemDependentFact(Exclude = OperatingSystem.OSX | OperatingSystem.Windows)]
166167
public void Cert()
167168
{
168-
if (System.Runtime.InteropServices.RuntimeInformation.IsOSPlatform(OSPlatform.OSX))
169-
{
170-
// TODO: This test fails on OS X for some reason. Figure out why...
171-
return;
172-
}
173-
174169
var serverCertificateData = File.ReadAllText("assets/apiserver-pfx-data.txt");
175170

176171
var clientCertificateKeyData = File.ReadAllText("assets/client-key-data.txt");

0 commit comments

Comments
 (0)