Dispose host on test teardown.

This commit is contained in:
Paul Johnson
2020-12-21 09:02:05 +00:00
parent 03f22e9362
commit 198586a82b
2 changed files with 1 additions and 9 deletions

View File

@@ -86,6 +86,7 @@ namespace Umbraco.Tests.Integration.Testing
// Ensure CoreRuntime stopped (now it's a HostedService)
IHost host = Services.GetRequiredService<IHost>();
host.StopAsync().GetAwaiter().GetResult();
host.Dispose();
}
[TearDown]