diff options
author | github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> | 2022-03-11 23:02:29 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-11 23:02:29 +0300 |
commit | d0c82a380f3ce4069822f9c2038bc09cf433cabb (patch) | |
tree | cf4c4bed69a8fb93c74dea7a144cc44f67196a90 /src/libraries | |
parent | 19b5f153aee6ebb326da8443e6bf1fd8f9157081 (diff) |
[release/6.0] improve SslStream tests on misconfigured systems (#65024)
* improve SslStream tests on misconfigured systems
* feedback from review
Co-authored-by: wfurt <tweinfurt@yahoo.com>
Diffstat (limited to 'src/libraries')
-rw-r--r-- | src/libraries/System.Net.Security/tests/FunctionalTests/ServerAsyncAuthenticateTest.cs | 2 | ||||
-rw-r--r-- | src/libraries/System.Net.Security/tests/FunctionalTests/TestConfiguration.cs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/libraries/System.Net.Security/tests/FunctionalTests/ServerAsyncAuthenticateTest.cs b/src/libraries/System.Net.Security/tests/FunctionalTests/ServerAsyncAuthenticateTest.cs index 73d480a3048..345cfd41013 100644 --- a/src/libraries/System.Net.Security/tests/FunctionalTests/ServerAsyncAuthenticateTest.cs +++ b/src/libraries/System.Net.Security/tests/FunctionalTests/ServerAsyncAuthenticateTest.cs @@ -387,7 +387,7 @@ namespace System.Net.Security.Tests await clientAuthentication.WaitAsync(TestConfiguration.PassingTestTimeout); _logVerbose.WriteLine("ServerAsyncAuthenticateTest.clientAuthentication complete."); } - catch (Exception ex) + catch (AuthenticationException ex) { // Ignore client-side errors: we're only interested in server-side behavior. _log.WriteLine("Client exception : " + ex); diff --git a/src/libraries/System.Net.Security/tests/FunctionalTests/TestConfiguration.cs b/src/libraries/System.Net.Security/tests/FunctionalTests/TestConfiguration.cs index 4bd1b0ee30f..82cbe9f14f8 100644 --- a/src/libraries/System.Net.Security/tests/FunctionalTests/TestConfiguration.cs +++ b/src/libraries/System.Net.Security/tests/FunctionalTests/TestConfiguration.cs @@ -13,7 +13,7 @@ namespace System.Net.Security.Tests { internal static class TestConfiguration { - public const int PassingTestTimeoutMilliseconds = 4 * 60 * 1000; + public const int PassingTestTimeoutMilliseconds = 1 * 60 * 1000; public static TimeSpan PassingTestTimeout => TimeSpan.FromMilliseconds(PassingTestTimeoutMilliseconds); public const string Realm = "TEST.COREFX.NET"; |