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:
parent
128feac03e
commit
b38284d372
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue
Block a user