[corlib] New lazily initialized X509Certificate.
[mono.git] / mcs / tests / test-async-07.cs
index 0a6dd398dbefaa52913db60f80353747997bea9a..60c4ca000ef082502c339703ec1568d75cb37c09 100644 (file)
@@ -1,5 +1,3 @@
-// Compiler options: -langversion:future
-
 using System;
 using System.Threading;
 using System.Threading.Tasks;
@@ -17,7 +15,7 @@ class Program
                                        throw new ApplicationException ("3");
 
                                return l;
-                       });
+                       }).ConfigureAwait (false);
 
                var r = f ("a");
                mre_l.Set ();
@@ -33,7 +31,7 @@ class Program
                        await Task.Factory.StartNew (() => {
                                if (!mre_l.WaitOne (3000))
                                        throw new ApplicationException ("3");
-                       });
+                       }).ConfigureAwait (false);
 
                var rr = ff ();
                mre_l.Set ();
@@ -52,7 +50,7 @@ class Program
                                if (!mre_l.WaitOne (3000))
                                        throw new ApplicationException ("4");
                                mre.Set ();
-                       }, CancellationToken.None);
+                       }, CancellationToken.None).ConfigureAwait (false);
                
                a ();
                mre_l.Set ();