Skip to content

Commit d0c82a3

Browse files
[release/6.0] improve SslStream tests on misconfigured systems (#65024)
* improve SslStream tests on misconfigured systems * feedback from review Co-authored-by: wfurt <[email protected]>
1 parent 19b5f15 commit d0c82a3

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
@@ -387,7 +387,7 @@ private async Task ServerAsyncSslHelper(
387387
await clientAuthentication.WaitAsync(TestConfiguration.PassingTestTimeout);
388388
_logVerbose.WriteLine("ServerAsyncAuthenticateTest.clientAuthentication complete.");
389389
}
390-
catch (Exception ex)
390+
catch (AuthenticationException ex)
391391
{
392392
// Ignore client-side errors: we're only interested in server-side behavior.
393393
_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)