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

Fix of duplication info message for unhandled message (#6532). #6730

Merged
merged 1 commit into from
May 4, 2023

Conversation

F0b0s
Copy link
Contributor

@F0b0s F0b0s commented May 4, 2023

Fixes #6532

Changes

Code that duplicates info message in TestKit has been removed. For TestKit we can use usual
case LogEvent logEvent:
in the same file because every unhandled message generates Info LogEvent by default behaviour.

@@ -32,7 +31,7 @@ protected override void SendRawLogEventMessage(object message)
public async Task Unhandled_message_should_produce_info_message()
{
await EventFilter
.Info(new Regex("^Unhandled message from"))
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This regex hides out duplicated message

@Aaronontheweb Aaronontheweb added tests akka-testkit Akka.NET Testkit issues labels May 4, 2023
Copy link
Member

@Aaronontheweb Aaronontheweb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Aaronontheweb Aaronontheweb merged commit 5782949 into akkadotnet:dev May 4, 2023
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 tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unhandled message generates 2 info messages but only one of them is visible in the log
2 participants