You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by ch...@apache.org on 2025/10/27 03:40:50 UTC
(servicecomb-java-chassis) branch master updated: change TestMeasurementGroupConfig.addGroup to deterministic implementation (#4994)
This is an automated email from the ASF dual-hosted git repository.
chenzhida pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/servicecomb-java-chassis.git
The following commit(s) were added to refs/heads/master by this push:
new e56086d1e change TestMeasurementGroupConfig.addGroup to deterministic implementation (#4994)
e56086d1e is described below
commit e56086d1ec33390ece6bfc1d7029c4c674df38e3
Author: Anthony Xu <ay...@illinois.edu>
AuthorDate: Sun Oct 26 22:40:44 2025 -0500
change TestMeasurementGroupConfig.addGroup to deterministic implementation (#4994)
---
.../metrics/publish/spectator/TestMeasurementGroupConfig.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/foundations/foundation-metrics/src/test/java/org/apache/servicecomb/foundation/metrics/publish/spectator/TestMeasurementGroupConfig.java b/foundations/foundation-metrics/src/test/java/org/apache/servicecomb/foundation/metrics/publish/spectator/TestMeasurementGroupConfig.java
index b46373867..60d77b4c7 100644
--- a/foundations/foundation-metrics/src/test/java/org/apache/servicecomb/foundation/metrics/publish/spectator/TestMeasurementGroupConfig.java
+++ b/foundations/foundation-metrics/src/test/java/org/apache/servicecomb/foundation/metrics/publish/spectator/TestMeasurementGroupConfig.java
@@ -53,7 +53,7 @@ public class TestMeasurementGroupConfig {
config.addGroup("id1", "tag1.1", "tag1.2");
config.addGroup("id2", "tag2.1", "tag2.2");
- MatcherAssert.assertThat(groups.keySet(), Matchers.contains("id2", "id1"));
+ MatcherAssert.assertThat(groups.keySet(), Matchers.containsInAnyOrder("id2", "id1"));
MatcherAssert.assertThat(groups.get("id1").stream().map(TagFinder::getTagKey).toArray(), Matchers.arrayContaining("tag1.1", "tag1.2"));
MatcherAssert.assertThat(groups.get("id2").stream().map(TagFinder::getTagKey).toArray(), Matchers.arrayContaining("tag2.1", "tag2.2"));
}