mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-25 12:43:23 +00:00
Fix TestGetNameFromCallsite as the test runner line changed.
https://github.com/golang/go/blob/release-branch.go1.10/src/testing/testing.go#L777 https://github.com/golang/go/blob/release-branch.go1.11/src/testing/testing.go#L827
This commit is contained in:
parent
962fdbcbca
commit
e2893bbc94
@ -31,12 +31,12 @@ func TestGetNameFromCallsite(t *testing.T) {
|
|||||||
{
|
{
|
||||||
name: "ignore-package",
|
name: "ignore-package",
|
||||||
ignoredPackages: []string{"k8s.io/apimachinery/pkg/util/naming"},
|
ignoredPackages: []string{"k8s.io/apimachinery/pkg/util/naming"},
|
||||||
expected: "testing/testing.go:777",
|
expected: "testing/testing.go:827",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "ignore-file",
|
name: "ignore-file",
|
||||||
ignoredPackages: []string{"k8s.io/apimachinery/pkg/util/naming/from_stack_test.go"},
|
ignoredPackages: []string{"k8s.io/apimachinery/pkg/util/naming/from_stack_test.go"},
|
||||||
expected: "testing/testing.go:777",
|
expected: "testing/testing.go:827",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "ignore-multiple",
|
name: "ignore-multiple",
|
||||||
|
Loading…
Reference in New Issue
Block a user