diff --git a/src/Core/test/Eventuous.Tests/Fixtures/NaiveFixture.cs b/src/Core/test/Eventuous.Tests/Fixtures/NaiveFixture.cs index c53a5cdc..99c013eb 100644 --- a/src/Core/test/Eventuous.Tests/Fixtures/NaiveFixture.cs +++ b/src/Core/test/Eventuous.Tests/Fixtures/NaiveFixture.cs @@ -8,7 +8,10 @@ namespace Eventuous.Tests.Fixtures; public class NaiveFixture { protected IEventStore EventStore { get; } = new InMemoryEventStore(); - static readonly Faker Faker = new Faker() + // A fresh Faker per call rather than one shared instance: f.Noda() caches its dataset in that + // Faker's Bogus.Premium context, a plain Dictionary, so tests running in parallel would race + // its first write and corrupt it. Same shape as DomainFixture in the other test suites. + static Faker Faker => new Faker() .CustomInstantiator( f => { var checkin = f.Noda().LocalDate.Soon();