diff options
| author | Bond_009 <bond.009@outlook.com> | 2021-03-05 12:34:22 +0100 |
|---|---|---|
| committer | Bond_009 <bond.009@outlook.com> | 2021-03-09 14:24:19 +0100 |
| commit | 37eb7d6d49b35067c6711ba6f74a64242da419b0 (patch) | |
| tree | 266628df04e9e83d7b707327206bdab6842a8fe7 | |
| parent | b9577d0fd986fcadd656a9438eba81f49f375ad8 (diff) | |
Perform static initialization only once
| -rw-r--r-- | tests/Jellyfin.Server.Integration.Tests/JellyfinApplicationFactory.cs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/Jellyfin.Server.Integration.Tests/JellyfinApplicationFactory.cs b/tests/Jellyfin.Server.Integration.Tests/JellyfinApplicationFactory.cs index 94e618102..d9ec81a27 100644 --- a/tests/Jellyfin.Server.Integration.Tests/JellyfinApplicationFactory.cs +++ b/tests/Jellyfin.Server.Integration.Tests/JellyfinApplicationFactory.cs @@ -4,7 +4,6 @@ using System.IO; using System.Threading; using Emby.Server.Implementations; using Emby.Server.Implementations.IO; -using Jellyfin.Server; using MediaBrowser.Common; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Mvc.Testing; @@ -26,9 +25,9 @@ namespace Jellyfin.Server.Integration.Tests private readonly ConcurrentBag<IDisposable> _disposableComponents = new ConcurrentBag<IDisposable>(); /// <summary> - /// Initializes a new instance of the <see cref="JellyfinApplicationFactory"/> class. + /// Initializes static members of the <see cref="JellyfinApplicationFactory"/> class. /// </summary> - public JellyfinApplicationFactory() + static JellyfinApplicationFactory() { // Perform static initialization that only needs to happen once per test-run Log.Logger = new LoggerConfiguration().WriteTo.Console().CreateLogger(); |
