IGNITE-4377 Cannot find schema for object with compact footer - fix .NET test
Problem seems to be solved. Retry mechanism removed from tests.


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

Branch: refs/heads/ignite-5658
Commit: d758a3f1b09def177b11d85c782ff11e274cfdec
Parents: 1be7738
Author: Pavel Tupitsyn <ptupit...@apache.org>
Authored: Mon Jul 31 11:49:49 2017 +0300
Committer: Pavel Tupitsyn <ptupit...@apache.org>
Committed: Mon Jul 31 11:49:49 2017 +0300

----------------------------------------------------------------------
 .../Binary/BinaryCompactFooterInteropTest.cs    | 29 ++++----------------
 1 file changed, 5 insertions(+), 24 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/d758a3f1/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Binary/BinaryCompactFooterInteropTest.cs
----------------------------------------------------------------------
diff --git 
a/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Binary/BinaryCompactFooterInteropTest.cs
 
b/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Binary/BinaryCompactFooterInteropTest.cs
index 6f97677..e76811f 100644
--- 
a/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Binary/BinaryCompactFooterInteropTest.cs
+++ 
b/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Binary/BinaryCompactFooterInteropTest.cs
@@ -17,7 +17,6 @@
 
 namespace Apache.Ignite.Core.Tests.Binary
 {
-    using System;
     using System.Collections;
     using System.Linq;
     using Apache.Ignite.Core.Binary;
@@ -64,32 +63,14 @@ namespace Apache.Ignite.Core.Tests.Binary
         [Test]
         public void TestFromJava([Values(true, false)] bool client)
         {
-            // Retry multiple times: IGNITE-4377
-            for (int i = 0; i < 10; i++)
-            {
-                var grid = client ? _clientGrid : _grid;
-
-                try
-                {
-                    grid.GetOrCreateCache<int, 
int>("default").Put(ComputeApiTest.EchoTypeBinarizable, i * 99);
-
-                    var fromJava = 
grid.GetCompute().ExecuteJavaTask<PlatformComputeBinarizable>(
-                        ComputeApiTest.EchoTask, 
ComputeApiTest.EchoTypeBinarizable);
+            var grid = client ? _clientGrid : _grid;
 
-                    Assert.AreEqual(i * 99, fromJava.Field);
+            grid.GetOrCreateCache<int, 
int>("default").Put(ComputeApiTest.EchoTypeBinarizable, 99);
 
-                    return;
-                }
-                catch (Exception ex)
-                {
-                    Console.WriteLine("TestFromJava failed on try {0}: \n 
{1}", i, ex);
+            var fromJava = 
grid.GetCompute().ExecuteJavaTask<PlatformComputeBinarizable>(
+                ComputeApiTest.EchoTask, ComputeApiTest.EchoTypeBinarizable);
 
-                    if (i < 9)
-                        continue;
-                    
-                    throw;
-                }
-            }
+            Assert.AreEqual(99, fromJava.Field);
         }
 
         /// <summary>

Reply via email to