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

Fixing async issues in OrchardCore.Tests (Lombiq Technologies: OCORE-80) #11195

Merged
merged 3 commits into from
Feb 16, 2022

Conversation

Piedone
Copy link
Member

@Piedone Piedone commented Feb 16, 2022

Under #11194 I've noticed (well, the analyzers that I've accidentally added noticed, really) several async issues in the tests. After fixing them, one of the tests failed, which I'm fixing here too.

Comment on lines +151 to +154
if (methodHasParams && (methodParameters.Length - args.Count == 1) && !lastParameterIsParams)
{
invokeParameters.Add(new string[] { });
}
Copy link
Member Author

Choose a reason for hiding this comment

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

I'm really not sure why this logic was there. However, adding a second string[] argument to a method invocation that has a params parameter (in addition to an already added string[] argument on line 131) seems like a no-go in any case.

@Piedone
Copy link
Member Author

Piedone commented Feb 16, 2022

Hmm, the CLA check didn't run. I've asked about this here: dotnet-foundation/website#1086. However, since I have the CLA signed since the dawn of time, I'll just go ahead and merge it.

@Piedone Piedone merged commit 1f215b5 into OrchardCMS:main Feb 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants