Skip to content

Commit

Permalink
attempting to debug Akka.Persistence.TestKit.Tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaronontheweb committed Jan 4, 2024
1 parent 85f9d99 commit df57633
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
10 changes: 8 additions & 2 deletions src/core/Akka.Persistence.TestKit.Tests/Bug4762FixSpec.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
using Akka.Actor;
using Akka.Event;
using Xunit;
using Xunit.Abstractions;

namespace Akka.Persistence.TestKit.Tests
{
Expand All @@ -21,6 +22,11 @@ namespace Akka.Persistence.TestKit.Tests
/// </summary>
public class Bug4762FixSpec : PersistenceTestKit
{
public Bug4762FixSpec(ITestOutputHelper outputHelper) : base(output: outputHelper)
{

}

private class WriteMessage
{ }

Expand Down Expand Up @@ -65,10 +71,10 @@ protected override void OnRecover(object message)
}

[Fact]
public async Task TestJournal_PersistAll_should_only_count_each_event_exceptions_once()
public Task TestJournal_PersistAll_should_only_count_each_event_exceptions_once()
{
var probe = CreateTestProbe();
await WithJournalWrite(write => write.Pass(), async () =>
return WithJournalWrite(write => write.Pass(), async () =>
{
var actor = ActorOf(() => new TestActor2(probe));
Watch(actor);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public class JournalRecoveryBehavior
{
internal JournalRecoveryBehavior(IJournalBehaviorSetter setter)
{
this.Setter = setter;
Setter = setter;
}

private IJournalBehaviorSetter Setter { get; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ internal class JournalRecoveryBehaviorSetter : IJournalBehaviorSetter
{
internal JournalRecoveryBehaviorSetter(IActorRef journal)
{
this._journal = journal;
_journal = journal;
}

private readonly IActorRef _journal;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ internal class JournalWriteBehaviorSetter : IJournalBehaviorSetter
{
internal JournalWriteBehaviorSetter(IActorRef journal)
{
this._journal = journal;
_journal = journal;
}

private readonly IActorRef _journal;
Expand Down

0 comments on commit df57633

Please sign in to comment.