Skip to content
Open
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 @@ -18,6 +18,8 @@ private static Config Config() => ConfigurationFactory.ParseString("akka.logleve

public InMemoryAllEventsSpec(ITestOutputHelper output) : base(Config(), nameof(InMemoryAllEventsSpec), output)
{
// Proactively initialize the write journal to avoid cold-start delays on first persist
Persistence.Instance.Apply(Sys).JournalFor("akka.persistence.journal.inmem");
ReadJournal = Sys.ReadJournalFor<InMemoryReadJournal>(InMemoryReadJournal.Identifier);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ private static Config Config() => ConfigurationFactory.ParseString("akka.logleve
public InMemoryEventsByPersistenceIdSpec(ITestOutputHelper output) :
base(Config(), nameof(InMemoryCurrentPersistenceIdsSpec), output)
{
// Proactively initialize the write journal to avoid cold-start delays on first persist
Persistence.Instance.Apply(Sys).JournalFor("akka.persistence.journal.inmem");
ReadJournal = Sys.ReadJournalFor<InMemoryReadJournal>(InMemoryReadJournal.Identifier);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ private static Config Config() => ConfigurationFactory.ParseString(@"
public InMemoryEventsByTagSpec(ITestOutputHelper output) :
base(Config(), nameof(InMemoryCurrentPersistenceIdsSpec), output)
{
// Proactively initialize the write journal to avoid cold-start delays on first persist
Persistence.Instance.Apply(Sys).JournalFor("akka.persistence.journal.inmem");
ReadJournal = Sys.ReadJournalFor<InMemoryReadJournal>(InMemoryReadJournal.Identifier);
}

Expand Down
Loading