Skip to content

Commit bdb73bc

Browse files
committed
fix tests
Signed-off-by: Gregor Zeitlinger <[email protected]>
1 parent 7f2c52a commit bdb73bc

File tree

1 file changed

+2
-2
lines changed
  • prometheus-metrics-instrumentation-dropwizard5/src/test/java/io/prometheus/metrics/instrumentation/dropwizard5

1 file changed

+2
-2
lines changed

prometheus-metrics-instrumentation-dropwizard5/src/test/java/io/prometheus/metrics/instrumentation/dropwizard5/DropwizardExportsTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -350,8 +350,8 @@ private String convertToOpenMetricsFormat(PrometheusRegistry _registry) {
350350
ByteArrayOutputStream out = new ByteArrayOutputStream();
351351
OpenMetricsTextFormatWriter writer = new OpenMetricsTextFormatWriter(true, true);
352352
try {
353-
writer.write(out, _registry.scrape(), EscapingScheme.NO_ESCAPING);
354-
return out.toString(StandardCharsets.UTF_8.name());
353+
writer.write(out, _registry.scrape(), EscapingScheme.UNDERSCORE_ESCAPING);
354+
return out.toString(StandardCharsets.UTF_8);
355355
} catch (IOException e) {
356356
throw new RuntimeException(e);
357357
}

0 commit comments

Comments
 (0)