mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 03:41:45 +00:00
fix existing unit tests
This commit is contained in:
parent
585ce7f04d
commit
d3aabe2397
@ -487,7 +487,7 @@ var _ = metrics.NewCounter(
|
||||
`},
|
||||
{
|
||||
testName: "Fail on stable metric with attribute set to local function return",
|
||||
err: fmt.Errorf("testdata/metric.go:9:4: Non string attribute it not supported"),
|
||||
err: fmt.Errorf("testdata/metric.go:9:4: Non string attribute is not supported"),
|
||||
src: `
|
||||
package test
|
||||
import "k8s.io/component-base/metrics"
|
||||
@ -503,7 +503,7 @@ var _ = metrics.NewCounter(
|
||||
`},
|
||||
{
|
||||
testName: "Fail on stable metric with attribute set to imported function return",
|
||||
err: fmt.Errorf("testdata/metric.go:7:4: Non string attribute it not supported"),
|
||||
err: fmt.Errorf("testdata/metric.go:7:4: Non string attribute is not supported"),
|
||||
src: `
|
||||
package test
|
||||
import "k8s.io/component-base/metrics"
|
||||
|
Loading…
Reference in New Issue
Block a user