api/tests: test bodies for equality even if status codes are different
When developing tests it's nice to see all the differences at once.
This commit is contained in:
parent
1fac27527b
commit
2cb7c8936e
1 changed files with 0 additions and 1 deletions
|
|
@ -115,7 +115,6 @@ func testRoute(t *testing.T, api *weldr.API, external bool, method, path, body s
|
|||
|
||||
if resp.StatusCode != expectedStatus {
|
||||
t.Errorf("%s: expected status %v, but got %v", path, expectedStatus, resp.StatusCode)
|
||||
return
|
||||
}
|
||||
|
||||
replyJSON, err := ioutil.ReadAll(resp.Body)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue