From d9914b58a3bc87997f65d0bb75da4cc6cc7aa78a Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Tue, 27 Jun 2023 16:18:04 +0200 Subject: [PATCH] dnsdist: Fix the initial value of the custom gauge in our tests Thanks Otto! (cherry picked from commit 55361195cb8d1f6c4a6e32e2504996bec67a23b4) --- regression-tests.dnsdist/test_Advanced.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.47.2