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

fixed issues with AwaitConditionAsync #6467

Merged
merged 5 commits into from
Feb 28, 2023

Conversation

Aaronontheweb
Copy link
Member

@Aaronontheweb Aaronontheweb commented Feb 28, 2023

Changes

Fixing API issues reported in #6466

Checklist

For significant changes, please ensure that the following have been completed (delete if not relevant):

@Aaronontheweb Aaronontheweb added api-change akka-testkit Akka.NET Testkit issues labels Feb 28, 2023
@Aaronontheweb Aaronontheweb marked this pull request as ready for review February 28, 2023 16:45
Copy link
Member Author

@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.

Reviewed my changes

@@ -123,6 +127,9 @@ public interface IEventFilterApplier
/// <param name="action">The action.</param>
/// <param name="cancellationToken"></param>
Task ExpectAsync(int expectedCount, TimeSpan timeout, Func<Task> action, CancellationToken cancellationToken = default);

[Obsolete("Use ExpectAsync<T>(expectedCount, TimeSpan, Func<Task<T>>) instead. This method only exists to support backwards compatibility as of Akka.NET v1.5.")]
Copy link
Member Author

Choose a reason for hiding this comment

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

Added Obsolete APIs for __Async methods that were introduced in the v1.4 TestKit that accepted Action overloads.

@@ -568,6 +568,14 @@ public async ValueTask<T> ExpectMsgAnyOfAsync<T>(IEnumerable<T> messages, Cancel

return (T)o;
}

public IReadOnlyCollection<T> ExpectMsgAllOf<T>(
Copy link
Member Author

Choose a reason for hiding this comment

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

Needed to add this for backwards compat.

@@ -606,6 +614,13 @@ await foreach (var item in enumerable)
yield return item;
}
}

public IReadOnlyCollection<T> ExpectMsgAllOf<T>(
Copy link
Member Author

Choose a reason for hiding this comment

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

Backwards compat.

Copy link
Contributor

@Arkatufus Arkatufus 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 4d9cfb4 into akkadotnet:dev Feb 28, 2023
@Aaronontheweb Aaronontheweb deleted the fix-6466-TestKit-fixes branch February 28, 2023 17:32
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 api-change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants