Skip to content

Commit fd60723

Browse files
committed
Fix tests (They're probably still broke)
1 parent b349a83 commit fd60723

File tree

4 files changed

+3
-7
lines changed

4 files changed

+3
-7
lines changed

Libraries/SPTarkov.Common/Extensions/SptLoggerExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public static IServiceCollection AddSptLogger(this IServiceCollection collection
6565
{
6666
ArgumentNullException.ThrowIfNull(collection);
6767

68-
FileRollMonitor.RegisterHandler();
68+
LogFileRollMonitor.RegisterHandler();
6969

7070
if (isDevelop)
7171
{

Libraries/SPTarkov.Common/Logger/SptLoggerProvider.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public ILogger CreateLogger(string categoryName)
3838
public void Dispose()
3939
{
4040
// We can stop the file roller a bit early.
41-
FileRollMonitor.UnregisterHandler();
41+
LogFileRollMonitor.UnregisterHandler();
4242

4343
sptLoggerQueueManager.DumpAndStop(TimeSpan.FromSeconds(1));
4444

Testing/UnitTests/DI.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
using SPTarkov.Server.Core.Models.Spt.Mod;
66
using SPTarkov.Server.Core.Services.Hosted;
77
using SPTarkov.Server.Core.Utils;
8-
using SPTarkov.Server.Core.Utils.Logger.Handlers;
98
using UnitTests.Mock;
109

1110
namespace UnitTests;
@@ -55,10 +54,6 @@ private void ConfigureServices()
5554

5655
foreach (var onLoad in _serviceProvider.GetServices<IOnLoad>())
5756
{
58-
if (onLoad is FileLogHandler)
59-
{
60-
continue;
61-
}
6257
onLoad.OnLoad(cancellationTokenSource.Token).Wait();
6358
}
6459
}

Testing/UnitTests/Mock/MockLogger.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
using SPTarkov.Common.Logger;
12
using SPTarkov.Common.Models.Logging;
23
using SPTarkov.DI.Annotations;
34

0 commit comments

Comments
 (0)