Reduced the likelihood of the unlimited wait test for the transaction class resulting in a code coverage of less than 100%

git-svn-id: file:///srv/devel/repo-conversion/nusu@150 d2e56fa2-650e-0410-a79f-9358c0239efd
This commit is contained in:
Markus Ewald 2009-06-17 21:07:34 +00:00
parent 4fd22afcc0
commit 128feac03e

View File

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