Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Akka.Hosting.TestKit: AwaitAssertAsync only runs once #265

Open
Aaronontheweb opened this issue Mar 15, 2023 · 1 comment · May be fixed by #317
Open

Akka.Hosting.TestKit: AwaitAssertAsync only runs once #265

Aaronontheweb opened this issue Mar 15, 2023 · 1 comment · May be fixed by #317
Labels
testkit Akka.Hosting.TestKit fixes and issues.

Comments

@Aaronontheweb
Copy link
Member

Version Information
Version of Akka.NET? 1.5.0
Which Akka.NET Modules? Akka.Hosting.TestKit

Describe the bug

await AwaitAssertAsync(async () =>
{
    var r = await testActorRef.Ask<string>(new MyTestActor.GetData(), TimeSpan.FromMilliseconds(100));
    r.Should().Be("BackgroundService started");
}, RemainingOrDefault, TimeSpan.FromMilliseconds(150));

The above assertion runs once and then quits.

@Aaronontheweb Aaronontheweb added bug Something isn't working testkit Akka.Hosting.TestKit fixes and issues. labels Mar 15, 2023
@Arkatufus Arkatufus added bug Something isn't working and removed bug Something isn't working labels May 26, 2023
Arkatufus added a commit to Arkatufus/Akka.Hosting that referenced this issue May 26, 2023
@Arkatufus Arkatufus linked a pull request May 26, 2023 that will close this issue
@Arkatufus Arkatufus removed the bug Something isn't working label May 26, 2023
@Arkatufus
Copy link
Contributor

Could not reproduce the issue. Could it be that RemainingOrDefault returns a very short TimeSpan?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
testkit Akka.Hosting.TestKit fixes and issues.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants