From: Remi Gacogne Date: Tue, 27 Jun 2023 14:18:04 +0000 (+0200) Subject: dnsdist: Fix the initial value of the custom gauge in our tests X-Git-Tag: dnsdist-1.8.1~3^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d9914b58a3bc87997f65d0bb75da4cc6cc7aa78a;p=thirdparty%2Fpdns.git dnsdist: Fix the initial value of the custom gauge in our tests Thanks Otto! (cherry picked from commit 55361195cb8d1f6c4a6e32e2504996bec67a23b4) --- diff --git a/regression-tests.dnsdist/test_Advanced.py b/regression-tests.dnsdist/test_Advanced.py index a5997946de..f8a0be04a5 100644 --- a/regression-tests.dnsdist/test_Advanced.py +++ b/regression-tests.dnsdist/test_Advanced.py @@ -592,7 +592,7 @@ class TestCustomMetrics(DNSDistTest): _config_template = """ function custommetrics(dq) initialCounter = getMetric("my-custom-counter") - initialGauge = getMetric("my-custom-counter") + initialGauge = getMetric("my-custom-gauge") incMetric("my-custom-counter") incMetric("my-custom-counter", 41) setMetric("my-custom-gauge", initialGauge + 1.3)