Skip to content

Commit da2df7e

Browse files
authored
improve SslStream tests on misconfigured systems (#64966)
* improve SslStream tests on misconfigured systems * feedback from review
1 parent 49e46e3 commit da2df7e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/libraries/System.Net.Security/tests/FunctionalTests/ServerAsyncAuthenticateTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ private async Task ServerAsyncSslHelper(
423423
await clientAuthentication.WaitAsync(TestConfiguration.PassingTestTimeout);
424424
_logVerbose.WriteLine("ServerAsyncAuthenticateTest.clientAuthentication complete.");
425425
}
426-
catch (Exception ex)
426+
catch (AuthenticationException ex)
427427
{
428428
// Ignore client-side errors: we're only interested in server-side behavior.
429429
_log.WriteLine("Client exception : " + ex);

src/libraries/System.Net.Security/tests/FunctionalTests/TestConfiguration.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ namespace System.Net.Security.Tests
1313
{
1414
internal static class TestConfiguration
1515
{
16-
public const int PassingTestTimeoutMilliseconds = 4 * 60 * 1000;
16+
public const int PassingTestTimeoutMilliseconds = 1 * 60 * 1000;
1717
public static TimeSpan PassingTestTimeout => TimeSpan.FromMilliseconds(PassingTestTimeoutMilliseconds);
1818

1919
public const string Realm = "TEST.COREFX.NET";

0 commit comments

Comments
 (0)