diff options
Diffstat (limited to 'mcs/class/corlib/Test/System.Threading/ThreadPoolTest.cs')
-rw-r--r-- | mcs/class/corlib/Test/System.Threading/ThreadPoolTest.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mcs/class/corlib/Test/System.Threading/ThreadPoolTest.cs b/mcs/class/corlib/Test/System.Threading/ThreadPoolTest.cs index e86fd1d0e52..242e9cc8251 100644 --- a/mcs/class/corlib/Test/System.Threading/ThreadPoolTest.cs +++ b/mcs/class/corlib/Test/System.Threading/ThreadPoolTest.cs @@ -240,14 +240,14 @@ namespace MonoTests.System.Threading ThreadPool.RegisterWaitForSingleObject (evt, (state, to) => { var_2 = asyncLocal.Value; cw.Signal (); - }, null, 1, false); + }, null, millisecondsTimeOutInterval: 1, executeOnlyOnce: true); ThreadPool.UnsafeRegisterWaitForSingleObject (evt, (state, to) => { var_3 = asyncLocal.Value; cw.Signal (); - }, null, 1, false); + }, null, millisecondsTimeOutInterval: 1, executeOnlyOnce: true); - Assert.IsTrue (cw.Wait (1000), "cw_wait"); + Assert.IsTrue (cw.Wait (2000), "cw_wait"); Assert.AreEqual (1, var_0, "var_0"); Assert.AreEqual (0, var_1, "var_1"); |