Skip to content

Commit 64d5940

Browse files
authored
Allow both decimal and floating point numbers in metrics assertion pattern (#1939)
1 parent 2a33ada commit 64d5940

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

integration-tests/src/common/java/pl/allegro/tech/hermes/integrationtests/assertions/PrometheusMetricsAssertion.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
public class PrometheusMetricsAssertion {
1010

1111
private static final Pattern METRIC_LINE_PATTERN =
12-
Pattern.compile("^[a-z_]+\\{(.*)\\} (\\d+\\.\\d+)$");
12+
Pattern.compile("^[a-z_]+\\{(.*)\\} (\\d+(\\.\\d+)?)$");
1313

1414
private final String actualBody;
1515

0 commit comments

Comments
 (0)