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 2019/04/10 06:37:42 UTC
[ignite] branch master updated: .NET: Improve assertion in
DataRegionMetricsTest.TestMemoryMetrics
This is an automated email from the ASF dual-hosted git repository.
ptupitsyn pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ignite.git
The following commit(s) were added to refs/heads/master by this push:
new d18f98e .NET: Improve assertion in DataRegionMetricsTest.TestMemoryMetrics
d18f98e is described below
commit d18f98ea39deb85c37d03fc0c521faff66886448
Author: Pavel Tupitsyn <pt...@apache.org>
AuthorDate: Wed Apr 10 09:37:29 2019 +0300
.NET: Improve assertion in DataRegionMetricsTest.TestMemoryMetrics
---
.../Cache/DataRegionMetricsTest.cs | 15 ++++++++++++++-
1 file changed, 14 insertions(+), 1 deletion(-)
diff --git a/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Cache/DataRegionMetricsTest.cs b/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Cache/DataRegionMetricsTest.cs
index d977694..d2ff32c 100644
--- a/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Cache/DataRegionMetricsTest.cs
+++ b/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Cache/DataRegionMetricsTest.cs
@@ -62,7 +62,20 @@ namespace Apache.Ignite.Core.Tests.Cache
// Verify metrics.
var metrics = ignite.GetDataRegionMetrics().OrderBy(x => x.Name).ToArray();
- Assert.AreEqual(6, metrics.Length); // three defined plus system, metastorage and TxLog.
+ var names = metrics.Select(x => x.Name).ToArray();
+
+ Assert.AreEqual(
+ new[]
+ {
+ "metastoreMemPlc",
+ RegionNoMetrics,
+ RegionWithMetrics,
+ RegionWithMetricsAndPersistence,
+ "sysMemPlc",
+ "TxLog"
+ },
+ names,
+ string.Join(", ", names));
var emptyMetrics = metrics[1];
Assert.AreEqual(RegionNoMetrics, emptyMetrics.Name);