mirror of https://github.com/k3s-io/k3s
Merge pull request #62251 from xialonglee/patch-1
Automatic merge from submit-queue (batch tested with PRs 62250, 62251). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. fix wrong error type when formatting **What this PR does / why we need it**: it should be `%v` not `%d` **Release note**: NONEpull/8/head
commit
d39bfa0d13
|
@ -306,7 +306,7 @@ func Test_toRealServer(t *testing.T) {
|
|||
for i := range Tests {
|
||||
got, err := toRealServer(&Tests[i].ipvsDestination)
|
||||
if err != nil {
|
||||
t.Errorf("case %d unexpected error: %d", i, err)
|
||||
t.Errorf("case %d unexpected error: %v", i, err)
|
||||
}
|
||||
if !reflect.DeepEqual(*got, Tests[i].realServer) {
|
||||
t.Errorf("case %d Failed to translate Destination - got %#v, want %#v", i, *got, Tests[i].realServer)
|
||||
|
@ -349,7 +349,7 @@ func Test_toIPVSDestination(t *testing.T) {
|
|||
for i := range Tests {
|
||||
got, err := toIPVSDestination(&Tests[i].realServer)
|
||||
if err != nil {
|
||||
t.Errorf("case %d unexpected error: %d", i, err)
|
||||
t.Errorf("case %d unexpected error: %v", i, err)
|
||||
}
|
||||
if !reflect.DeepEqual(*got, Tests[i].ipvsDestination) {
|
||||
t.Errorf("case %d failed to translate Destination - got %#v, want %#v", i, *got, Tests[i].ipvsDestination)
|
||||
|
|
Loading…
Reference in New Issue