Skip to content

Commit

Permalink
Fix: expected response error status
Browse files Browse the repository at this point in the history
  • Loading branch information
paologalligit committed Mar 20, 2024
1 parent 4dff1cb commit 2b8e295
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/accounts/accounts_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ func batchCall(t *testing.T) {
BlockRef: "0x00",
}
_, statusCode = httpPost(t, ts.URL+"/accounts/*", badBlockRef)
assert.Equal(t, http.StatusBadRequest, statusCode, "invalid blockRef")
assert.Equal(t, http.StatusInternalServerError, statusCode, "invalid blockRef")

// Request body has an invalid malformed revision
_, statusCode = httpPost(t, fmt.Sprintf("%s/accounts/*?revision=%d", ts.URL, malformedBody), badBody)
Expand Down

0 comments on commit 2b8e295

Please sign in to comment.