Skip to content

Commit 9413db6

Browse files
committed
revert manual test
Signed-off-by: Gregor Zeitlinger <[email protected]>
1 parent bc01f4c commit 9413db6

File tree

1 file changed

+2
-16
lines changed

1 file changed

+2
-16
lines changed

prometheus-metrics-core/src/test/java/io/prometheus/metrics/core/metrics/CallbackMetricTest.java

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
package io.prometheus.metrics.core.metrics;
22

3-
import static org.assertj.core.api.Assertions.assertThatExceptionOfType;
4-
5-
import io.prometheus.metrics.expositionformats.ExpositionFormats;
6-
import io.prometheus.metrics.model.registry.PrometheusRegistry;
7-
import java.io.IOException;
83
import org.junit.jupiter.api.Test;
94

5+
import static org.assertj.core.api.Assertions.assertThatExceptionOfType;
6+
107
class CallbackMetricTest {
118

129
@Test
@@ -49,15 +46,4 @@ void makeLabels() {
4946
"Cannot pass label values to a CounterWithCallback that was created without label"
5047
+ " names.");
5148
}
52-
53-
@Test
54-
void manual() throws IOException {
55-
PrometheusRegistry prometheusRegistry = new PrometheusRegistry();
56-
Counter counter =
57-
Counter.builder().name("te:st").labelNames("test").register(prometheusRegistry);
58-
counter.labelValues("te:st").inc();
59-
ExpositionFormats.init()
60-
.getPrometheusTextFormatWriter()
61-
.write(System.out, prometheusRegistry.scrape());
62-
}
6349
}

0 commit comments

Comments
 (0)