Skip to content

Commit

Permalink
Port Akka.Tests.Actor tests to async/await - BugFix4823Spec (#5769
Browse files Browse the repository at this point in the history
)

* Port `Akka.Tests.Actor` tests to `async/await` - `BugFix4823Spec`

* Removed ask-timeout code to make CI/CD work faster, will add this later

Co-authored-by: Gregorius Soedharmo <arkatufus@yahoo.com>
  • Loading branch information
eaba and Arkatufus authored Mar 29, 2022
1 parent 1054222 commit aac587a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/core/Akka.Tests/Actor/BugFix4823Spec.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ public BugFix4823Spec(ITestOutputHelper outputHelper) : base(outputHelper)
}

[Fact]
public void Actor_should_not_loose_self_context_after_async_call()
public async Task Actor_should_not_loose_self_context_after_async_call()
{
var identity = ActorOfAsTestActorRef<MyActor>(Props.Create(() => new MyActor(TestActor)), TestActor);
identity.Tell(NotUsed.Instance);
var selfBefore = ExpectMsg<IActorRef>();
var selfAfter = ExpectMsg<IActorRef>();
var selfBefore = await ExpectMsgAsync<IActorRef>();
var selfAfter = await ExpectMsgAsync<IActorRef>();
selfAfter.Should().Be(selfBefore);
}

Expand Down

0 comments on commit aac587a

Please sign in to comment.