mirror of
https://github.com/yannh/kubeconform.git
synced 2026-02-24 04:07:02 +00:00
fix: update range expression
This commit is contained in:
parent
95185a88ad
commit
46e6b6518e
1 changed files with 1 additions and 1 deletions
|
|
@ -408,7 +408,7 @@ lastName: bar
|
||||||
if len(got.ValidationErrors) != len(testCase.expectErrors) {
|
if len(got.ValidationErrors) != len(testCase.expectErrors) {
|
||||||
t.Errorf("Test '%s': expected ValidationErrors: %+v, got: % v", testCase.name, testCase.expectErrors, got.ValidationErrors)
|
t.Errorf("Test '%s': expected ValidationErrors: %+v, got: % v", testCase.name, testCase.expectErrors, got.ValidationErrors)
|
||||||
}
|
}
|
||||||
for i, _ := range testCase.expectErrors {
|
for i := range testCase.expectErrors {
|
||||||
if testCase.expectErrors[i] != got.ValidationErrors[i] {
|
if testCase.expectErrors[i] != got.ValidationErrors[i] {
|
||||||
t.Errorf("Test '%s': expected ValidationErrors: %+v, got: % v", testCase.name, testCase.expectErrors, got.ValidationErrors)
|
t.Errorf("Test '%s': expected ValidationErrors: %+v, got: % v", testCase.name, testCase.expectErrors, got.ValidationErrors)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue