From b38284d3722d72e077568db3ad79de85fc20d1c5 Mon Sep 17 00:00:00 2001 From: Markus Ewald Date: Fri, 19 Jun 2009 19:36:25 +0000 Subject: [PATCH] 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 --- Source/Tracking/Transaction.Test.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Tracking/Transaction.Test.cs b/Source/Tracking/Transaction.Test.cs index 89fd4ca..1968d35 100644 --- a/Source/Tracking/Transaction.Test.cs +++ b/Source/Tracking/Transaction.Test.cs @@ -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();