diff options
author | Marek Safar <marek.safar@gmail.com> | 2011-09-22 21:26:01 +0400 |
---|---|---|
committer | Marek Safar <marek.safar@gmail.com> | 2011-09-22 21:39:41 +0400 |
commit | e348cb5e2d493ac50800fb433d20ff5eee5b0b44 (patch) | |
tree | 97ab47d3b658f1d10cd45d785c6b051b38c063a1 | |
parent | 4e5add05fc2b6b129725c0ed8845cb0041c625b7 (diff) |
Update test with timeout
-rw-r--r-- | mcs/tests/test-async-23.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mcs/tests/test-async-23.cs b/mcs/tests/test-async-23.cs index a198efb1054..ed5d3ebe448 100644 --- a/mcs/tests/test-async-23.cs +++ b/mcs/tests/test-async-23.cs @@ -50,7 +50,8 @@ public class TestPostContext try { SynchronizationContext.SetSynchronizationContext (context); var t = Test (); - Task.WaitAll (t); + if (!t.Wait (1000)) + return 3; } finally { SynchronizationContext.SetSynchronizationContext (null); } |