Decrease connections used in ConnectionCountingReturnsToZero for slow test agents (#1872)

This commit is contained in:
Nate McMaster 2017-05-30 14:16:07 -07:00 committed by GitHub
parent 402b337178
commit a334e88597
1 changed files with 3 additions and 3 deletions

View File

@ -135,7 +135,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.FunctionalTests
[Fact]
public async Task ConnectionCountingReturnsToZero()
{
const int count = 500;
const int count = 100;
var opened = 0;
var closed = 0;
var openedTcs = new TaskCompletionSource<object>();
@ -179,9 +179,9 @@ namespace Microsoft.AspNetCore.Server.Kestrel.FunctionalTests
});
// wait until resource counter has called lock for each connection
await openedTcs.Task.TimeoutAfter(TimeSpan.FromSeconds(60));
await openedTcs.Task.TimeoutAfter(TimeSpan.FromSeconds(120));
// wait until resource counter has released all normal connections
await closedTcs.Task.TimeoutAfter(TimeSpan.FromSeconds(60));
await closedTcs.Task.TimeoutAfter(TimeSpan.FromSeconds(120));
Assert.Equal(count, opened);
Assert.Equal(count, closed);
}