fix(test): fix error comparison in GetPodResourcesV1 test
This commit is contained in:
@@ -709,15 +709,11 @@ func TestGetPodResourcesV1(t *testing.T) {
|
||||
if err.Error() != tc.err.Error() {
|
||||
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())
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user