1
0
Fork 0
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:
Henrik Hautakoski 2022-10-12 18:25:04 +02:00
parent 3e9bf2aa75
commit 35b81cdcdc
No known key found for this signature in database
GPG key ID: 608414D93E862CCD

View file

@ -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(`{}`))
}))