From 86641c7a03b2d0777d3e99716141ffaa52808b68 Mon Sep 17 00:00:00 2001 From: wfurt Date: Tue, 3 Dec 2019 08:45:00 -0800 Subject: [PATCH] feedback from reviewe --- .../tests/FunctionalTests/SslStreamAllowRenegotiationTests.cs | 2 +- .../tests/FunctionalTests/SslStreamNetworkStreamTest.cs | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/libraries/System.Net.Security/tests/FunctionalTests/SslStreamAllowRenegotiationTests.cs b/src/libraries/System.Net.Security/tests/FunctionalTests/SslStreamAllowRenegotiationTests.cs index bfd1291..1895d11 100644 --- a/src/libraries/System.Net.Security/tests/FunctionalTests/SslStreamAllowRenegotiationTests.cs +++ b/src/libraries/System.Net.Security/tests/FunctionalTests/SslStreamAllowRenegotiationTests.cs @@ -61,7 +61,7 @@ namespace System.Net.Security.Tests int bytesRead = await ssl.ReadAsync(message, 0, message.Length); // Renegotiation will trigger another validation callback/ - Assert.True(validationCount > 1); + Assert.InRange(validationCount, 2, int.MaxValue); Assert.InRange(bytesRead, 1, message.Length); Assert.Contains("HTTP/1.1 200 OK", Encoding.UTF8.GetString(message)); } diff --git a/src/libraries/System.Net.Security/tests/FunctionalTests/SslStreamNetworkStreamTest.cs b/src/libraries/System.Net.Security/tests/FunctionalTests/SslStreamNetworkStreamTest.cs index af3ec12..03099eb 100644 --- a/src/libraries/System.Net.Security/tests/FunctionalTests/SslStreamNetworkStreamTest.cs +++ b/src/libraries/System.Net.Security/tests/FunctionalTests/SslStreamNetworkStreamTest.cs @@ -161,8 +161,7 @@ namespace System.Net.Security.Tests int bytesRead = await ssl.ReadAsync(message, 0, message.Length); // renegotiation will trigger validation callback again. - Assert.True(validationCount > 1); - + Assert.InRange(validationCount, 2, int.MaxValue); Assert.InRange(bytesRead, 1, message.Length); Assert.Contains("HTTP/1.1 200 OK", Encoding.UTF8.GetString(message)); } -- 2.7.4