fix(test): fix error comparison in GetPodResourcesV1 test

This commit is contained in:
ithrael 2023-08-28 18:55:12 +08:00
parent d680bc540b
commit 9a24dd2c27

View File

@ -710,12 +710,8 @@ func TestGetPodResourcesV1(t *testing.T) {
t.Errorf("want exit = %v, got %v", tc.err, err)
}
} else {
if err != nil {
t.Errorf("want exit = %v, got %v", tc.err, err)
} else {
if !equalGetResponse(tc.expectedResponse, resp) {
t.Errorf("want resp = %s, got %s", tc.expectedResponse.String(), resp.String())
}
if !equalGetResponse(tc.expectedResponse, resp) {
t.Errorf("want resp = %s, got %s", tc.expectedResponse.String(), resp.String())
}
}
})