test: update goversion label to 1.25 in metrics test (#5886)

* test(metrics): update goversion label to 1.25 for Go 1.25 upgrade compatibility

* feat(models_test): use runtime.version
This commit is contained in:
Andrew Hay 2025-10-03 11:44:59 -04:00 committed by GitHub
parent 699e994a9c
commit caa4fc75a3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -18,6 +18,7 @@ package metrics
import (
"reflect"
"runtime"
"testing"
"github.com/prometheus/client_golang/prometheus"
@ -129,7 +130,7 @@ func TestNewGaugeFuncMetric(t *testing.T) {
subSystem: "",
constLabels: prometheus.Labels{
"version": "0.0.1",
"goversion": "1.24",
"goversion": runtime.Version(),
"arch": "arm64",
},
expectedFqName: "external_dns_build_info",