mirror of
https://github.com/eosswedenorg/antelope-api-healthcheck
synced 2026-06-18 05:00:03 +02:00
src/api/eosio_contract_test.go: in TestEosioContractHTTP500Down() need to set content-type header.
This commit is contained in:
parent
3e9bf2aa75
commit
35b81cdcdc
1 changed files with 1 additions and 0 deletions
|
|
@ -47,6 +47,7 @@ func TestEosioContractJsonFailure(t *testing.T) {
|
|||
func TestEosioContractHTTP500Down(t *testing.T) {
|
||||
|
||||
var srv = httptest.NewServer(http.HandlerFunc(func(res http.ResponseWriter, req *http.Request) {
|
||||
res.Header().Add("Content-type", "application/json; charset=utf-8")
|
||||
res.WriteHeader(500)
|
||||
res.Write([]byte(`{}`))
|
||||
}))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue