fix test
authorGonzalo Paniagua Javier <gonzalo.mono@gmail.com>
Sun, 28 Jun 2009 03:50:35 +0000 (03:50 -0000)
committerGonzalo Paniagua Javier <gonzalo.mono@gmail.com>
Sun, 28 Jun 2009 03:50:35 +0000 (03:50 -0000)
svn path=/trunk/mcs/; revision=137040

mcs/class/corlib/Test/System.Threading/TimerTest.cs

index 2749d99b759b24b4635c28316090ad48fc15516f..3581d495fe7ad579847e938227a2dd5d2e24278e 100644 (file)
@@ -29,9 +29,13 @@ namespace MonoTests.System.Threading {
                        // this makes fair for the "DueTime" test since it 
                        // doesn't have to wait for the scheduler thread to be 
                        // created. 
-                       new Timer (null, null, Timeout.Infinite, 0);
+                       new Timer (new TimerCallback (DoNothing), null, Timeout.Infinite, 0);
                }
-               
+
+               void DoNothing (object foo)
+               {
+               }
+
                [Test]
                public void TestDueTime ()
                {