mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-12 21:36:24 +00:00
fix(test): fix error comparison in GetPodResourcesV1 test
This commit is contained in:
parent
d680bc540b
commit
9a24dd2c27
@ -710,12 +710,8 @@ func TestGetPodResourcesV1(t *testing.T) {
|
|||||||
t.Errorf("want exit = %v, got %v", tc.err, err)
|
t.Errorf("want exit = %v, got %v", tc.err, err)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if err != nil {
|
if !equalGetResponse(tc.expectedResponse, resp) {
|
||||||
t.Errorf("want exit = %v, got %v", tc.err, err)
|
t.Errorf("want resp = %s, got %s", tc.expectedResponse.String(), resp.String())
|
||||||
} else {
|
|
||||||
if !equalGetResponse(tc.expectedResponse, resp) {
|
|
||||||
t.Errorf("want resp = %s, got %s", tc.expectedResponse.String(), resp.String())
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user