Skip to content

Commit 836854e

Browse files
committed
Ensure SelfLog will not tear into other tests
1 parent a3cd930 commit 836854e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

test/Serilog.Sinks.File.Tests/RollingFileSinkTests.cs

+6-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
namespace Serilog.Sinks.File.Tests;
1111

12-
public class RollingFileSinkTests
12+
public class RollingFileSinkTests : IDisposable
1313
{
1414
private readonly ITestOutputHelper _testOutputHelper;
1515

@@ -18,6 +18,11 @@ public RollingFileSinkTests(ITestOutputHelper testOutputHelper)
1818
_testOutputHelper = testOutputHelper;
1919
}
2020

21+
public void Dispose()
22+
{
23+
SelfLog.Disable();
24+
}
25+
2126
[Fact]
2227
public void LogEventsAreEmittedToTheFileNamedAccordingToTheEventTimestamp()
2328
{

0 commit comments

Comments
 (0)