Skip to content

Commit caa4fc7

Browse files
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
1 parent 699e994 commit caa4fc7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/metrics/models_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ package metrics
1818

1919
import (
2020
"reflect"
21+
"runtime"
2122
"testing"
2223

2324
"github.com/prometheus/client_golang/prometheus"
@@ -129,7 +130,7 @@ func TestNewGaugeFuncMetric(t *testing.T) {
129130
subSystem: "",
130131
constLabels: prometheus.Labels{
131132
"version": "0.0.1",
132-
"goversion": "1.24",
133+
"goversion": runtime.Version(),
133134
"arch": "arm64",
134135
},
135136
expectedFqName: "external_dns_build_info",

0 commit comments

Comments
 (0)