mirror of
https://github.com/kubernetes-sigs/external-dns.git
synced 2025-12-19 18:51:01 +01:00
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:
parent
699e994a9c
commit
caa4fc75a3
@ -18,6 +18,7 @@ package metrics
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"reflect"
|
"reflect"
|
||||||
|
"runtime"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/prometheus/client_golang/prometheus"
|
"github.com/prometheus/client_golang/prometheus"
|
||||||
@ -129,7 +130,7 @@ func TestNewGaugeFuncMetric(t *testing.T) {
|
|||||||
subSystem: "",
|
subSystem: "",
|
||||||
constLabels: prometheus.Labels{
|
constLabels: prometheus.Labels{
|
||||||
"version": "0.0.1",
|
"version": "0.0.1",
|
||||||
"goversion": "1.24",
|
"goversion": runtime.Version(),
|
||||||
"arch": "arm64",
|
"arch": "arm64",
|
||||||
},
|
},
|
||||||
expectedFqName: "external_dns_build_info",
|
expectedFqName: "external_dns_build_info",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user