Skip to content
Merged
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
5 changes: 4 additions & 1 deletion src/Core/test/Eventuous.Tests/Fixtures/NaiveFixture.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ namespace Eventuous.Tests.Fixtures;
public class NaiveFixture {
protected IEventStore EventStore { get; } = new InMemoryEventStore();

static readonly Faker<Commands.BookRoom> Faker = new Faker<Commands.BookRoom>()
// 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<Commands.BookRoom> Faker => new Faker<Commands.BookRoom>()
.CustomInstantiator(
f => {
var checkin = f.Noda().LocalDate.Soon();
Expand Down
Loading