Skip to content

Commit f9520fa

Browse files
committed
Dependencies
1 parent cb1e4b4 commit f9520fa

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Serilog.Sinks.XUnit.Injectable/InjectableTestOutputSink.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public sealed class InjectableTestOutputSink : IInjectableTestOutputSink
4949
// Only the reader loop touches this queue
5050
private readonly Queue<LogEvent> _pending = new();
5151

52-
private readonly AtomicBool _disposed = new();
52+
private AtomicBool _disposed;
5353

5454
public InjectableTestOutputSink(string outputTemplate = _defaultTemplate, IFormatProvider? formatProvider = null)
5555
{
@@ -68,15 +68,15 @@ public void Inject(ITestOutputHelper helper, IMessageSink? diagnosticSink = null
6868
/// <summary>Serilog pipeline entry point.</summary>
6969
public void Emit(LogEvent logEvent)
7070
{
71-
if (logEvent is null || _disposed.IsTrue)
71+
if (logEvent is null || _disposed.Value)
7272
return;
7373

7474
_ch.Writer.TryWrite(logEvent); // non-blocking; may drop when full
7575
}
7676

7777
public void Complete()
7878
{
79-
if (_disposed.IsTrue)
79+
if (_disposed.Value)
8080
return;
8181

8282
_helper = null; // stop xUnit writes

src/Serilog.Sinks.XUnit.Injectable/Serilog.Sinks.XUnit.Injectable.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
<PackageReference Include="Serilog" Version="4.3.0" />
4545
<PackageReference Include="Soenneker.Extensions.Task" Version="4.0.107" />
4646
<PackageReference Include="Soenneker.Extensions.ValueTask" Version="4.0.97" />
47-
<PackageReference Include="Soenneker.Atomics.Bools" Version="4.0.3" />
47+
<PackageReference Include="Soenneker.Atomics.Bools" Version="4.0.6" />
4848
<PackageReference Include="Soenneker.Utils.ReusableStringWriter" Version="4.0.8" />
4949
<PackageReference Include="xunit.v3.extensibility.core" Version="3.2.1" />
5050
</ItemGroup>

0 commit comments

Comments
 (0)