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

ExpectMsgFromAsync throws Format Excepion #7442

Closed
biasc opened this issue Jan 7, 2025 · 1 comment · Fixed by #7446
Closed

ExpectMsgFromAsync throws Format Excepion #7442

biasc opened this issue Jan 7, 2025 · 1 comment · Fixed by #7446
Labels
akka-testkit Akka.NET Testkit issues confirmed bug
Milestone

Comments

@biasc
Copy link

biasc commented Jan 7, 2025

Version Information
Version of Akka.NET?
Akka.TestKit 1.5.33

Describe the bug
The method:
public ValueTask ExpectMsgFromAsync(
Predicate isSender,
Predicate isMessage,
TimeSpan? timeout = null,
string hint = null,
CancellationToken cancellationToken = default)

always throws exception.

To Reproduce
Steps to reproduce the behavior:

  1. Download the project
  2. Run the unit test (the test Test_Receive_Response_From_Specific_Child throws exception)

Link to the test project:
https://github.com/biasc/Akka-Bug-Report2

Expected behavior
Unit test should pass

Environment
Windows 11, net8.0

@milang
Copy link
Contributor

milang commented Jan 7, 2025

@biasc see akkadotnet/Akka.TestKit.NUnit#160 (comment) for recommended fix.

This is the same issue we had in Akka.TestKit.NUnit, see akkadotnet/Akka.TestKit.NUnit#159 for more info.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
akka-testkit Akka.NET Testkit issues confirmed bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants