This commit is contained in:
Ben Adams 2015-10-02 16:57:34 -04:00
parent 797962b608
commit e3298992e7
2 changed files with 2 additions and 2 deletions

View File

@ -25,7 +25,7 @@ namespace Microsoft.AspNet.Server.Testing
CancellationToken cancellationToken = default(CancellationToken), CancellationToken cancellationToken = default(CancellationToken),
int retryCount = 60) int retryCount = 60)
{ {
for (int retry = 0; retry < retryCount; retry++) for (var retry = 0; retry < retryCount; retry++)
{ {
if (cancellationToken.IsCancellationRequested) if (cancellationToken.IsCancellationRequested)
{ {

View File

@ -235,7 +235,7 @@ namespace Microsoft.AspNet.TestHost
// Assert // Assert
var buffer = new byte[1]; var buffer = new byte[1];
for (int i = 0; i < hello.Length; i++) for (var i = 0; i < hello.Length; i++)
{ {
bool last = i == (hello.Length - 1); bool last = i == (hello.Length - 1);
var result = await clientSocket.ReceiveAsync(new System.ArraySegment<byte>(buffer), CancellationToken.None); var result = await clientSocket.ReceiveAsync(new System.ArraySegment<byte>(buffer), CancellationToken.None);