-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Make sure to await async test asserts (2) #20506
Conversation
Hey there @MartyIX! Thank you so much for your PR! Someone from the team will get assigned to your PR shortly and we'll get it reviewed. |
@@ -63,9 +63,9 @@ public static async Task Run(Func<Task> asyncMethod) | |||
// Invoke the function and alert the context when it's complete | |||
var task = asyncMethod() ?? throw new InvalidOperationException("No task provided."); | |||
|
|||
task.ContinueWith(async (t, o) => await context.Complete(), TaskScheduler.Default); | |||
_ = task.ContinueWith(async (t, o) => await context.Complete(), TaskScheduler.Default); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure about this one.
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
@jsuarezruiz What is the next step please? |
@mattleibow friendly ping |
9ae81ba
to
ad7192d
Compare
@jsuarezruiz Ping please |
Azure Pipelines successfully started running 3 pipeline(s). |
ad7192d
to
6c9f9c0
Compare
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems we still have a couple more..
D:\a\_work\1\s\src\Controls\tests\Core.UnitTests\DeviceUnitTests.cs(92,67): error CS4014: Because this call is not awaited, execution of the current method continues before the call is completed. Consider applying the 'await' operator to the result of the call. [D:\a\_work\1\s\src\Controls\tests\Core.UnitTests\Controls.Core.UnitTests.csproj]
D:\a\_work\1\s\src\Controls\tests\Core.UnitTests\DeviceUnitTests.cs(131,69): error CS4014: Because this call is not awaited, execution of the current method continues before the call is completed. Consider applying the 'await' operator to the result of the call. [D:\a\_work\1\s\src\Controls\tests\Core.UnitTests\Controls.Core.UnitTests.csproj]
5928 Warning(s)
2 Error(s)
6c9f9c0
to
c7a94cf
Compare
I have modified it. |
@rmarinho Could you please re-run? |
@rmarinho Could you please re-run, or is there an issue? |
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
@rmarinho It looks like it succeeded..? |
Description of Change
Await the async methods.
This PR just adds one commit to #19994 as CS4014 warnings are reported in my MSVS 17.9 P5 now:
cc @mattleibow