You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by sb...@apache.org on 2016/12/09 08:57:37 UTC
[08/14] ignite git commit: IGNITE-4367 .NET: Fix ServicesTest
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-comm-balance-master
Commit: 597f3a581a0cc5e6061fd49071c13856be9d3627
Parents: 858b129
Author: Pavel Tupitsyn <pt...@apache.org>
Authored: Thu Dec 8 13:18:31 2016 +0300
Committer: Pavel Tupitsyn <pt...@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");