Expand timeout in SocketOutputTests due to flakiness on the CI server

#154
This commit is contained in:
Stephen Halter 2015-08-07 12:27:04 -07:00
parent 5dfca955b3
commit b2226772e3
1 changed files with 4 additions and 4 deletions

View File

@ -54,7 +54,7 @@ namespace Microsoft.AspNet.Server.KestrelTests
socketOutput.Write(buffer, onCompleted, null); socketOutput.Write(buffer, onCompleted, null);
// Assert // Assert
Assert.True(completedWh.Wait(100)); Assert.True(completedWh.Wait(1000));
} }
} }
@ -97,19 +97,19 @@ namespace Microsoft.AspNet.Server.KestrelTests
socketOutput.Write(buffer, onCompleted, null); socketOutput.Write(buffer, onCompleted, null);
// Assert // Assert
// The first write should pre-complete since it is <= _maxBytesPreCompleted. // The first write should pre-complete since it is <= _maxBytesPreCompleted.
Assert.True(completedWh.Wait(100)); Assert.True(completedWh.Wait(1000));
// Arrange // Arrange
completedWh.Reset(); completedWh.Reset();
// Act // Act
socketOutput.Write(buffer, onCompleted, null); socketOutput.Write(buffer, onCompleted, null);
// Assert // Assert
// Too many bytes are already pre-completed for the second write to pre-complete. // Too many bytes are already pre-completed for the second write to pre-complete.
Assert.False(completedWh.Wait(100)); Assert.False(completedWh.Wait(1000));
// Act // Act
completeQueue.Dequeue()(0); completeQueue.Dequeue()(0);
// Assert // Assert
// Finishing the first write should allow the second write to pre-complete. // Finishing the first write should allow the second write to pre-complete.
Assert.True(completedWh.Wait(100)); Assert.True(completedWh.Wait(1000));
} }
} }