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: rec-5.0.0-alpha1~144^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=55361195cb8d1f6c4a6e32e2504996bec67a23b4;p=thirdparty%2Fpdns.git dnsdist: Fix the initial value of the custom gauge in our tests Thanks Otto! --- diff --git a/regression-tests.dnsdist/test_Advanced.py b/regression-tests.dnsdist/test_Advanced.py index 186138cbd5..530bf0190a 100644 --- a/regression-tests.dnsdist/test_Advanced.py +++ b/regression-tests.dnsdist/test_Advanced.py @@ -595,7 +595,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)