Expand timeout in SocketOutputTests due to flakiness on the CI server
#154
This commit is contained in:
parent
5dfca955b3
commit
b2226772e3
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue