[System.Data] Try to fix random DataViewTest.DefaultColumnNameAddListChangedTest...
[mono-project.git] / mcs / tests / test-async-36.cs
blob151195b1e08da67e53fc9e974feb7cd48cbadb06
1 using System;
2 using System.Threading.Tasks;
4 class X
6 internal Task<int> ExecuteInternalAsync ()
8 return Task.FromResult (1);
11 public async Task<object> ExecuteReaderAsync ()
13 await ExecuteInternalAsync ();
14 return Task.FromResult (0);
17 public static int Main ()
19 var at = new X ().ExecuteReaderAsync ();
20 if (!at.Wait (1000))
21 return 1;
23 return 0;