Skip to content

Commit b8e0cb2

Browse files
Make WebAssembly E2E tests all use async main
1 parent 8ded549 commit b8e0cb2

File tree

1 file changed

+6
-1
lines changed
  • src/Components/test/testassets/BasicTestApp

1 file changed

+6
-1
lines changed

src/Components/test/testassets/BasicTestApp/Program.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,19 @@
22
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
33

44
using System.Globalization;
5+
using System.Threading.Tasks;
56
using Microsoft.AspNetCore.Blazor.Hosting;
67

78
namespace BasicTestApp
89
{
910
public class Program
1011
{
11-
public static void Main(string[] args)
12+
public static async Task Main(string[] args)
1213
{
14+
// Later on, the startup APIs will be inherently asynchronous
15+
// Until then, use this artificial means to show async main is working
16+
await Task.Yield();
17+
1318
// We want the culture to be en-US so that the tests for bind can work consistently.
1419
CultureInfo.CurrentCulture = new CultureInfo("en-US");
1520

0 commit comments

Comments
 (0)