Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

namespace Tests.Seq.Extensions.Logging;

[Collection("SelfLog")]
public class EnricherTests
{
[Fact]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

namespace Tests.Serilog.Extensions.Logging;

[Collection("SelfLog")]
public class SerilogLoggerTests
{
static SerilogLoggerTests()
Expand Down
12 changes: 12 additions & 0 deletions test/Seq.Extensions.Logging.Tests/Support/SelfLogCollection.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
using Xunit;

namespace Tests.Support;

/// <summary>
/// Tests in this collection share the process-global <c>SelfLog</c> state
/// (a single static output sink). Running them in parallel causes writes from
/// one test to be observed by another, producing spurious failures, so the
/// collection is serialized.
/// </summary>
[CollectionDefinition("SelfLog", DisableParallelization = true)]
public class SelfLogCollection { }
Loading