From 128feac03ecbe0b6e16e640fe4c94f126904ecd1 Mon Sep 17 00:00:00 2001 From: Markus Ewald Date: Wed, 17 Jun 2009 21:07:34 +0000 Subject: [PATCH] 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 --- Source/Tracking/Transaction.Test.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Source/Tracking/Transaction.Test.cs b/Source/Tracking/Transaction.Test.cs index 139cd75..89fd4ca 100644 --- a/Source/Tracking/Transaction.Test.cs +++ b/Source/Tracking/Transaction.Test.cs @@ -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(); }