Continuation task cannot be started. Fixes #996
[mono.git] / mcs / class / corlib / Test / System.Threading.Tasks / TaskFactoryTest.cs
index 52af73d5a2b9d457e29f79405c604e29dac32ed8..31c4ad5da512ac1fdac7bf6fb06b12dd60c3a4de 100644 (file)
@@ -188,7 +188,7 @@ namespace MonoTests.System.Threading.Tasks
                        foreach (Task t in tasks)
                                t.Start ();
 
-                       cont.Wait ();
+                       Assert.IsTrue (cont.Wait (2000), "#0");
 
                        Assert.IsTrue (r, "#1");
                        Assert.IsTrue (result, "#2");