diff options
| author | Patrick Barron <barronpm@gmail.com> | 2023-09-22 21:10:49 -0400 |
|---|---|---|
| committer | Patrick Barron <barronpm@gmail.com> | 2023-09-23 11:57:38 -0400 |
| commit | 493de3297a415061f8d6a69ff9f62261c3159a2a (patch) | |
| tree | 00f1d83732b79bee796440723d5e1f1c9b355ad1 /tests | |
| parent | 1d8c3e088be75ce02b811afaeea20307df0487be (diff) | |
Use IHostLifetime to handle restarting and shutting down
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/Jellyfin.Server.Integration.Tests/JellyfinApplicationFactory.cs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/Jellyfin.Server.Integration.Tests/JellyfinApplicationFactory.cs b/tests/Jellyfin.Server.Integration.Tests/JellyfinApplicationFactory.cs index 55bc43455..1c87d11f1 100644 --- a/tests/Jellyfin.Server.Integration.Tests/JellyfinApplicationFactory.cs +++ b/tests/Jellyfin.Server.Integration.Tests/JellyfinApplicationFactory.cs @@ -2,7 +2,6 @@ using System; using System.Collections.Concurrent; using System.Globalization; using System.IO; -using System.Threading; using Emby.Server.Implementations; using Jellyfin.Server.Extensions; using Jellyfin.Server.Helpers; @@ -105,7 +104,7 @@ namespace Jellyfin.Server.Integration.Tests var appHost = (TestAppHost)testServer.Services.GetRequiredService<IApplicationHost>(); appHost.ServiceProvider = testServer.Services; appHost.InitializeServices().GetAwaiter().GetResult(); - appHost.RunStartupTasksAsync(CancellationToken.None).GetAwaiter().GetResult(); + appHost.RunStartupTasksAsync().GetAwaiter().GetResult(); return testServer; } |
