Skip to content

Commit 9756b52

Browse files
author
iliax
committed
RawMetric.groupIntoSnapshot fix for jmx metrics with same name, but diff lbls
1 parent a81d170 commit 9756b52

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

api/src/test/java/io/kafbat/ui/service/metrics/RawMetricTest.java

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,10 @@ void groupIntoSnapshotChoosesFirstGaugeLabels() {
2525
assertThat(list)
2626
.hasSize(1)
2727
.element(0)
28-
.satisfies(snap -> {
29-
assertThat(snap.getDataPoints())
30-
.map(DataPointSnapshot::getLabels)
31-
.containsExactly(Labels.of("l1", "v1"), Labels.of("l1", "v11"));
32-
}
28+
.satisfies(snap ->
29+
assertThat(snap.getDataPoints())
30+
.map(DataPointSnapshot::getLabels)
31+
.containsExactly(Labels.of("l1", "v1"), Labels.of("l1", "v11"))
3332
);
3433
}
3534

0 commit comments

Comments
 (0)