Skip to content

Commit

Permalink
[release/6.0] improve SslStream tests on misconfigured systems (#65024)
Browse files Browse the repository at this point in the history
* improve SslStream tests on misconfigured systems

* feedback from review

Co-authored-by: wfurt <[email protected]>
  • Loading branch information
github-actions[bot] and wfurt authored Mar 11, 2022
1 parent 19b5f15 commit d0c82a3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ private async Task ServerAsyncSslHelper(
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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit d0c82a3

Please sign in to comment.