Skip to content

Commit 35d5ad5

Browse files
authored
Fix help fixtures in RenderTextFormatTest (#63)
Signed-off-by: Simon Podlipsky <simon@podlipsky.net>
1 parent bca39eb commit 35d5ad5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/Test/Prometheus/RenderTextFormatTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ private function buildSamples(): array
3434
$registry = new CollectorRegistry(new InMemory(), false);
3535
$registry->getOrRegisterCounter($namespace, 'counter', 'counter-help-text', ['label1', 'label2'])
3636
->inc(['bob', 'al\ice']);
37-
$registry->getOrRegisterGauge($namespace, 'gauge', 'counter-help-text', ['label1', 'label2'])
37+
$registry->getOrRegisterGauge($namespace, 'gauge', 'gauge-help-text', ['label1', 'label2'])
3838
->inc(["bo\nb", 'ali\"ce']);
39-
$registry->getOrRegisterHistogram($namespace, 'histogram', 'counter-help-text', ['label1', 'label2'], [0, 10, 100])
39+
$registry->getOrRegisterHistogram($namespace, 'histogram', 'histogram-help-text', ['label1', 'label2'], [0, 10, 100])
4040
->observe(5, ['bob', 'alice']);
4141

4242
return $registry->getMetricFamilySamples();
@@ -48,10 +48,10 @@ private function getExpectedOutput(): string
4848
# HELP mynamespace_counter counter-help-text
4949
# TYPE mynamespace_counter counter
5050
mynamespace_counter{label1="bob",label2="al\\\\ice"} 1
51-
# HELP mynamespace_gauge counter-help-text
51+
# HELP mynamespace_gauge gauge-help-text
5252
# TYPE mynamespace_gauge gauge
5353
mynamespace_gauge{label1="bo\\nb",label2="ali\\\\\"ce"} 1
54-
# HELP mynamespace_histogram counter-help-text
54+
# HELP mynamespace_histogram histogram-help-text
5555
# TYPE mynamespace_histogram histogram
5656
mynamespace_histogram_bucket{label1="bob",label2="alice",le="0"} 0
5757
mynamespace_histogram_bucket{label1="bob",label2="alice",le="10"} 1

0 commit comments

Comments
 (0)