Skip to content

Commit f71905e

Browse files
committed
fix
Signed-off-by: Gregor Zeitlinger <[email protected]>
1 parent 858462d commit f71905e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

prometheus-metrics-model/src/test/java/io/prometheus/metrics/model/snapshots/SummarySnapshotTest.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,9 @@ public void testEmptyData() {
114114
@Test
115115
void escape() {
116116
SummarySnapshot.SummaryDataPointSnapshot data =
117-
SummarySnapshot.SummaryDataPointSnapshot.builder().build();
118-
assertThat(data.escape(EscapingScheme.UNDERSCORE_ESCAPING)).isEqualTo(data);
117+
SummarySnapshot.SummaryDataPointSnapshot.builder().sum(12.0).build();
118+
assertThat(data.escape(EscapingScheme.UNDERSCORE_ESCAPING))
119+
.usingRecursiveComparison()
120+
.isEqualTo(data);
119121
}
120122
}

0 commit comments

Comments
 (0)