Skip to content

Commit caa3f01

Browse files
committed
protobuf
1 parent 9ba5246 commit caa3f01

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

prometheus-metrics-exposition-formats/src/test/java/io/prometheus/metrics/expositionformats/DuplicateNamesProtobufTest.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,7 @@ void testDuplicateNames_differentLabels_producesSingleMetricFamily() throws IOEx
105105
m.getLabelList().stream()
106106
.anyMatch(
107107
l ->
108-
l.getName().equals("outcome")
109-
&& l.getValue().equals("FAILURE"))
108+
l.getName().equals("outcome") && l.getValue().equals("FAILURE"))
110109
&& m.getLabelList().stream()
111110
.anyMatch(
112111
l -> l.getName().equals("error") && l.getValue().equals("TIMEOUT")))
@@ -208,8 +207,7 @@ public String getPrometheusName() {
208207
}
209208

210209
@Test
211-
void testDifferentMetrics_producesSeparateMetricFamilies()
212-
throws IOException {
210+
void testDifferentMetrics_producesSeparateMetricFamilies() throws IOException {
213211
MetricSnapshots snapshots = getMetricSnapshots();
214212
ByteArrayOutputStream out = new ByteArrayOutputStream();
215213
PrometheusProtobufWriterImpl writer = new PrometheusProtobufWriterImpl();

0 commit comments

Comments
 (0)