Switch from async void to async Task (#8722)
This commit is contained in:
parent
5ed7658bf2
commit
bf8058da25
|
|
@ -127,7 +127,7 @@ namespace Microsoft.AspNetCore.Mvc.FunctionalTests
|
|||
}
|
||||
|
||||
[Fact]
|
||||
public async void AggregateException_FlattensInnerExceptions()
|
||||
public async Task AggregateException_FlattensInnerExceptions()
|
||||
{
|
||||
// Arrange
|
||||
var aggregateException = "AggregateException: One or more errors occurred.";
|
||||
|
|
|
|||
|
|
@ -69,7 +69,7 @@ namespace Microsoft.AspNetCore.Mvc.Razor.TagHelpers
|
|||
}
|
||||
|
||||
[Fact]
|
||||
public async void ProcessAsync_InvokesComponentsProcessAsyncInCorrectOrder()
|
||||
public async Task ProcessAsync_InvokesComponentsProcessAsyncInCorrectOrder()
|
||||
{
|
||||
// Arrange
|
||||
var tagHelperContext = new TagHelperContext(
|
||||
|
|
|
|||
Loading…
Reference in New Issue