You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by pt...@apache.org on 2017/04/18 12:21:24 UTC

[3/3] ignite git commit: .NET: Fix AffinityFunctionTest

.NET: Fix AffinityFunctionTest


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

Branch: refs/heads/ignite-2.0
Commit: ded9974e1e1ef456e7e5ea5cd1bc4370fd525038
Parents: e018eae
Author: Pavel Tupitsyn <pt...@apache.org>
Authored: Tue Apr 18 15:15:07 2017 +0300
Committer: Pavel Tupitsyn <pt...@apache.org>
Committed: Tue Apr 18 15:15:07 2017 +0300

----------------------------------------------------------------------
 .../Cache/Affinity/AffinityFunctionTest.cs                    | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/ded9974e/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Cache/Affinity/AffinityFunctionTest.cs
----------------------------------------------------------------------
diff --git a/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Cache/Affinity/AffinityFunctionTest.cs b/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Cache/Affinity/AffinityFunctionTest.cs
index 404094d..5456ba4 100644
--- a/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Cache/Affinity/AffinityFunctionTest.cs
+++ b/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Cache/Affinity/AffinityFunctionTest.cs
@@ -93,9 +93,10 @@ namespace Apache.Ignite.Core.Tests.Cache.Affinity
         {
             try
             {
-                // Check that affinity handles are present
-                TestUtils.AssertHandleRegistryHasItems(_ignite, _ignite.GetCacheNames().Count - 3, 0);
-                TestUtils.AssertHandleRegistryHasItems(_ignite2, _ignite.GetCacheNames().Count - 3, 0);
+                // Check that affinity handles are present:
+                // TestDynamicCachePredefined and TestSimpleInheritance do not produce extra handles, so "-2" here.
+                TestUtils.AssertHandleRegistryHasItems(_ignite, _ignite.GetCacheNames().Count - 2, 0);
+                TestUtils.AssertHandleRegistryHasItems(_ignite2, _ignite.GetCacheNames().Count - 2, 0);
 
                 // Destroy all caches
                 _ignite.GetCacheNames().ToList().ForEach(_ignite.DestroyCache);