From b2226772e34cb0877e22d92472e3c155a99f10fe Mon Sep 17 00:00:00 2001 From: Stephen Halter Date: Fri, 7 Aug 2015 12:27:04 -0700 Subject: [PATCH] Expand timeout in SocketOutputTests due to flakiness on the CI server #154 --- .../SocketOutputTests.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/Microsoft.AspNet.Server.KestrelTests/SocketOutputTests.cs b/test/Microsoft.AspNet.Server.KestrelTests/SocketOutputTests.cs index 072feecc4f..97b1d998d7 100644 --- a/test/Microsoft.AspNet.Server.KestrelTests/SocketOutputTests.cs +++ b/test/Microsoft.AspNet.Server.KestrelTests/SocketOutputTests.cs @@ -54,7 +54,7 @@ namespace Microsoft.AspNet.Server.KestrelTests socketOutput.Write(buffer, onCompleted, null); // 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); // Assert // The first write should pre-complete since it is <= _maxBytesPreCompleted. - Assert.True(completedWh.Wait(100)); + Assert.True(completedWh.Wait(1000)); // Arrange completedWh.Reset(); // Act socketOutput.Write(buffer, onCompleted, null); // Assert // 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 completeQueue.Dequeue()(0); // Assert // Finishing the first write should allow the second write to pre-complete. - Assert.True(completedWh.Wait(100)); + Assert.True(completedWh.Wait(1000)); } }