The unlimited Wait() test still didn't produce 100% coverage - somehow the thread overtook the code creating it - added a Sleep(1) to fix this...

git-svn-id: file:///srv/devel/repo-conversion/nusu@151 d2e56fa2-650e-0410-a79f-9358c0239efd
This commit is contained in:
Markus Ewald 2009-06-19 19:36:25 +00:00
parent 128feac03e
commit b38284d372

View File

@ -168,7 +168,7 @@ namespace Nuclex.Support.Tracking {
// We can only do a positive test here without slowing down the unit test
ThreadPool.QueueUserWorkItem(
(WaitCallback)delegate(object state) { test.End(); }
(WaitCallback)delegate(object state) { Thread.Sleep(1); test.End(); }
);
test.Wait();