Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit 808390e

Browse files
author
Lakshmi Priya Sekar
committed
Change assert to inrange test.
1 parent 8a65cff commit 808390e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/System.Net.Security/tests/FunctionalTests/SslStreamAllowRenegotiationTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public async Task SslStream_DisableRenegotiation_False_Succeeds()
5757

5858
// Do another Read, to get the HTTP response from the server, after successful renegotiation.
5959
bytesRead = await ssl.ReadAsync(message, 0, message.Length);
60-
Assert.Equal(84, bytesRead);
60+
Assert.InRange(bytesRead, 1, message.Length);
6161
Assert.Contains("HTTP/1.1 200 OK", Encoding.UTF8.GetString(message));
6262
}
6363
}

src/System.Net.Security/tests/FunctionalTests/SslStreamNetworkStreamTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ public async Task SslStream_NetworkStream_Renegotiation_Succeeds()
106106

107107
// Do another Read, to get the HTTP response from the server, after successful renegotiation.
108108
bytesRead = await ssl.ReadAsync(message, 0, message.Length);
109-
Assert.True(bytesRead > 0);
109+
Assert.InRange(bytesRead, 1, message.Length);
110110
Assert.Contains("HTTP/1.1 200 OK", Encoding.UTF8.GetString(message));
111111
}
112112
}

0 commit comments

Comments
 (0)