IGNITE-9584 Fixed flaky .NET test
Project: http://git-wip-us.apache.org/repos/asf/ignite/repo Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/5e0455e1 Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/5e0455e1 Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/5e0455e1 Branch: refs/heads/ignite-7251 Commit: 5e0455e12059572a4a9bde6d14eb62977175f3e4 Parents: fcbd297 Author: Alexey Goncharuk <alexey.goncha...@gmail.com> Authored: Fri Sep 14 13:20:36 2018 +0300 Committer: Alexey Goncharuk <alexey.goncha...@gmail.com> Committed: Fri Sep 14 13:20:36 2018 +0300 ---------------------------------------------------------------------- .../Apache.Ignite.Core.Tests/Cache/DataStorageMetricsTest.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ignite/blob/5e0455e1/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Cache/DataStorageMetricsTest.cs ---------------------------------------------------------------------- diff --git a/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Cache/DataStorageMetricsTest.cs b/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Cache/DataStorageMetricsTest.cs index 1776d04..ebc6ca2 100644 --- a/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Cache/DataStorageMetricsTest.cs +++ b/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Cache/DataStorageMetricsTest.cs @@ -42,7 +42,7 @@ namespace Apache.Ignite.Core.Tests.Cache { DataStorageConfiguration = new DataStorageConfiguration { - CheckpointFrequency = TimeSpan.FromSeconds(1), + CheckpointFrequency = TimeSpan.FromSeconds(5), MetricsEnabled = true, WalMode = WalMode.LogOnly, DefaultDataRegionConfiguration = new DataRegionConfiguration @@ -82,7 +82,7 @@ namespace Apache.Ignite.Core.Tests.Cache Assert.GreaterOrEqual(metrics.LastCheckpointTotalPagesNumber, 26); Assert.AreEqual(0, metrics.LastCheckpointDataPagesNumber); Assert.AreEqual(0, metrics.LastCheckpointCopiedOnWritePagesNumber); - Assert.AreEqual(TimeSpan.Zero, metrics.LastCheckpointLockWaitDuration); + Assert.Greater(TimeSpan.FromSeconds(1), metrics.LastCheckpointLockWaitDuration); Assert.Greater(metrics.LastCheckpointPagesWriteDuration, TimeSpan.Zero); Assert.Greater(metrics.LastCheckpointMarkDuration, TimeSpan.Zero);