Skip to content

Commit

Permalink
[corlib] Set test failure when test hangs
Browse files Browse the repository at this point in the history
  • Loading branch information
marek-safar committed Apr 7, 2014
1 parent 6f677fd commit c52a372
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mcs/class/corlib/Test/System.Threading.Tasks/TaskTest.cs
Expand Up @@ -779,8 +779,8 @@ public void WaitChildWithNesting ()
}, TaskCreationOptions.AttachedToParent);
}, TaskCreationOptions.AttachedToParent);
});
t.Wait ();
Assert.IsTrue (result);
Assert.IsTrue (t.Wait (4000), "#1");
Assert.IsTrue (result, "#2");
}

[Test]
Expand Down

0 comments on commit c52a372

Please sign in to comment.