.NET: Fix TestCacheDataSurvivesNodeRestart
authorPavel Tupitsyn <ptupitsyn@apache.org>
Tue, 26 Dec 2017 07:36:24 +0000 (10:36 +0300)
committerPavel Tupitsyn <ptupitsyn@apache.org>
Tue, 26 Dec 2017 07:36:24 +0000 (10:36 +0300)
Reflect metrics changes from IGNITE-6339

modules/platforms/dotnet/Apache.Ignite.Core.Tests/Cache/PersistenceTest.cs
modules/platforms/dotnet/Apache.Ignite.Core.Tests/Cache/PersistentStoreTestObsolete.cs

index e2c5cef..c1be392 100644 (file)
@@ -134,14 +134,12 @@ namespace Apache.Ignite.Core.Tests.Cache
         }
 
         /// <summary>
-        /// Checks the data storage metrics.
+        /// Checks that data storage metrics reflect some write operations.
         /// </summary>
         private static void CheckDataStorageMetrics(IIgnite ignite)
         {
-            // Check metrics.
             var metrics = ignite.GetDataStorageMetrics();
             Assert.Greater(metrics.WalLoggingRate, 0);
-            Assert.Greater(metrics.WalWritingRate, 0);
             Assert.Greater(metrics.WalFsyncTimeAverage, 0);
         }
 
index 6d6e9a9..6b59377 100644 (file)
@@ -79,7 +79,6 @@ namespace Apache.Ignite.Core.Tests.Cache
                 // Check some metrics.
                 var metrics = ignite.GetPersistentStoreMetrics();
                 Assert.Greater(metrics.WalLoggingRate, 0);
-                Assert.Greater(metrics.WalWritingRate, 0);
                 Assert.Greater(metrics.WalFsyncTimeAverage, 0);
             }