ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sboi...@apache.org
Subject [08/49] ignite git commit: IGNITE-4367 .NET: Fix ServicesTest
Date Fri, 16 Dec 2016 11:41:37 GMT
IGNITE-4367 .NET: Fix ServicesTest


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

Branch: refs/heads/ignite-2.0
Commit: 597f3a581a0cc5e6061fd49071c13856be9d3627
Parents: 858b129
Author: Pavel Tupitsyn <ptupitsyn@apache.org>
Authored: Thu Dec 8 13:18:31 2016 +0300
Committer: Pavel Tupitsyn <ptupitsyn@apache.org>
Committed: Thu Dec 8 13:18:31 2016 +0300

----------------------------------------------------------------------
 .../Apache.Ignite.Core.Tests/Services/ServicesTest.cs       | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/597f3a58/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Services/ServicesTest.cs
----------------------------------------------------------------------
diff --git a/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Services/ServicesTest.cs b/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Services/ServicesTest.cs
index 38a96bd..dcddfdb 100644
--- a/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Services/ServicesTest.cs
+++ b/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Services/ServicesTest.cs
@@ -762,9 +762,6 @@ namespace Apache.Ignite.Core.Tests.Services
             [InstanceResource]
             private IIgnite _grid;
 
-            /** */
-            private readonly object _syncRoot = new object();
-
             /** <inheritdoc /> */
             public int TestProperty { get; set; }
 
@@ -810,7 +807,7 @@ namespace Apache.Ignite.Core.Tests.Services
             /** <inheritdoc /> */
             public void Init(IServiceContext context)
             {
-                lock (_syncRoot)
+                lock (this)
                 {
                     if (ThrowInit)
                         throw new Exception("Expected exception");
@@ -825,7 +822,7 @@ namespace Apache.Ignite.Core.Tests.Services
             /** <inheritdoc /> */
             public void Execute(IServiceContext context)
             {
-                lock (_syncRoot)
+                lock (this)
                 {
                     if (ThrowExecute)
                         throw new Exception("Expected exception");
@@ -843,7 +840,7 @@ namespace Apache.Ignite.Core.Tests.Services
             /** <inheritdoc /> */
             public void Cancel(IServiceContext context)
             {
-                lock (_syncRoot)
+                lock (this)
                 {
                     if (ThrowCancel)
                         throw new Exception("Expected exception");


Mime
View raw message