ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sboi...@apache.org
Subject [50/53] [abbrv] ignite git commit: .NET: Fix CustomLoggerTest cleanup
Date Fri, 19 Aug 2016 11:49:07 GMT
.NET: Fix CustomLoggerTest cleanup


Project: http://git-wip-us.apache.org/repos/asf/ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/47374d97
Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/47374d97
Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/47374d97

Branch: refs/heads/ignite-3299
Commit: 47374d97f3f5636a913a9317ffa4113ee6a13a11
Parents: 9fad9c9
Author: Pavel Tupitsyn <ptupitsyn@apache.org>
Authored: Thu Aug 18 19:46:39 2016 +0300
Committer: Pavel Tupitsyn <ptupitsyn@apache.org>
Committed: Thu Aug 18 19:46:39 2016 +0300

----------------------------------------------------------------------
 .../Apache.Ignite.Core.Tests/Log/CustomLoggerTest.cs      | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/47374d97/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Log/CustomLoggerTest.cs
----------------------------------------------------------------------
diff --git a/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Log/CustomLoggerTest.cs b/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Log/CustomLoggerTest.cs
index e097047..13e7854 100644
--- a/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Log/CustomLoggerTest.cs
+++ b/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Log/CustomLoggerTest.cs
@@ -45,7 +45,7 @@ namespace Apache.Ignite.Core.Tests.Log
         [SetUp]
         public void TestSetUp()
         {
-            TestLogger.Entries.Clear();
+            TestLogger.Clear();
         }
 
         /// <summary>
@@ -412,6 +412,14 @@ namespace Apache.Ignite.Core.Tests.Log
             [InstanceResource]
             // ReSharper disable once UnusedAutoPropertyAccessor.Local
             public IIgnite Ignite { get; set; }
+
+            public static void Clear()
+            {
+                lock (Logs)
+                {
+                    Logs.Clear();
+                }
+            }
         }
 
 


Mime
View raw message