mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-16 05:53:03 +03:00
Perform static initialization only once
This commit is contained in:
@@ -4,7 +4,6 @@ using System.IO;
|
|||||||
using System.Threading;
|
using System.Threading;
|
||||||
using Emby.Server.Implementations;
|
using Emby.Server.Implementations;
|
||||||
using Emby.Server.Implementations.IO;
|
using Emby.Server.Implementations.IO;
|
||||||
using Jellyfin.Server;
|
|
||||||
using MediaBrowser.Common;
|
using MediaBrowser.Common;
|
||||||
using Microsoft.AspNetCore.Hosting;
|
using Microsoft.AspNetCore.Hosting;
|
||||||
using Microsoft.AspNetCore.Mvc.Testing;
|
using Microsoft.AspNetCore.Mvc.Testing;
|
||||||
@@ -26,9 +25,9 @@ namespace Jellyfin.Server.Integration.Tests
|
|||||||
private readonly ConcurrentBag<IDisposable> _disposableComponents = new ConcurrentBag<IDisposable>();
|
private readonly ConcurrentBag<IDisposable> _disposableComponents = new ConcurrentBag<IDisposable>();
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Initializes a new instance of the <see cref="JellyfinApplicationFactory"/> class.
|
/// Initializes static members of the <see cref="JellyfinApplicationFactory"/> class.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public JellyfinApplicationFactory()
|
static JellyfinApplicationFactory()
|
||||||
{
|
{
|
||||||
// Perform static initialization that only needs to happen once per test-run
|
// Perform static initialization that only needs to happen once per test-run
|
||||||
Log.Logger = new LoggerConfiguration().WriteTo.Console().CreateLogger();
|
Log.Logger = new LoggerConfiguration().WriteTo.Console().CreateLogger();
|
||||||
|
|||||||
Reference in New Issue
Block a user