Set ShutdownTimeout in Kestrel tests (#25743)

This commit is contained in:
Brennan 2020-09-11 09:21:18 -07:00 committed by GitHub
parent a7d129cc97
commit 2ab6436cdd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 0 deletions

View File

@ -101,6 +101,13 @@ namespace Microsoft.AspNetCore.Server.Kestrel.FunctionalTests
.UseSetting(WebHostDefaults.ShutdownTimeoutKey, TestConstants.DefaultTimeout.TotalSeconds.ToString())
.Configure(app => { app.Run(_app); });
})
.ConfigureServices(services =>
{
services.Configure<HostOptions>(option =>
{
option.ShutdownTimeout = TestConstants.DefaultTimeout;
});
})
.Build();
_host.Start();