diff --git a/src/System.Net.Security/tests/FunctionalTests/NegotiateStreamTestForUnix.cs b/src/System.Net.Security/tests/FunctionalTests/NegotiateStreamTestForUnix.cs index 8522a20c56aa..c97cc821933a 100644 --- a/src/System.Net.Security/tests/FunctionalTests/NegotiateStreamTestForUnix.cs +++ b/src/System.Net.Security/tests/FunctionalTests/NegotiateStreamTestForUnix.cs @@ -73,31 +73,14 @@ public bool CheckAndClearCredentials(ITestOutputHelper output) } // Clear the credentials - try - { - var startInfo = new ProcessStartInfo(KDestroyCmd); - startInfo.UseShellExecute = true; - startInfo.CreateNoWindow = true; - startInfo.Arguments = "-A"; - using (Process clearCreds = Process.Start(startInfo)) - { - clearCreds.WaitForExit(); - output.WriteLine("kdestroy returned {0}", clearCreds.ExitCode); - return (clearCreds.ExitCode == 0); - } - } - catch (Win32Exception) - { - // https://github.com/dotnet/corefx/issues/24000 - // on these distros right now - Assert.True(PlatformDetection.IsUbuntu1704 || - PlatformDetection.IsUbuntu1710 || - PlatformDetection.IsOpenSUSE || - PlatformDetection.IsFedora || - PlatformDetection.IsDebian || - PlatformDetection.IsCentos7); - - return false; + var startInfo = new ProcessStartInfo(KDestroyCmd); + startInfo.CreateNoWindow = true; + startInfo.Arguments = "-A"; + using (Process clearCreds = Process.Start(startInfo)) + { + clearCreds.WaitForExit(); + output.WriteLine("kdestroy returned {0}", clearCreds.ExitCode); + return (clearCreds.ExitCode == 0); } }