mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
graphql: test content-type
Signed-off-by: jsvisa <delweng@gmail.com>
This commit is contained in:
parent
c0aec5a05f
commit
8243e3beb1
1 changed files with 3 additions and 0 deletions
|
|
@ -164,6 +164,9 @@ func TestGraphQLBlockSerialization(t *testing.T) {
|
||||||
if tt.code != resp.StatusCode {
|
if tt.code != resp.StatusCode {
|
||||||
t.Errorf("testcase %d %s,\nwrong statuscode, have: %v, want: %v", i, tt.body, resp.StatusCode, tt.code)
|
t.Errorf("testcase %d %s,\nwrong statuscode, have: %v, want: %v", i, tt.body, resp.StatusCode, tt.code)
|
||||||
}
|
}
|
||||||
|
if ctype := resp.Header.Get("Content-Type"); ctype != "application/json" {
|
||||||
|
t.Errorf("testcase %d \nwrong Content-Type, have: %v, want: %v", i, ctype, "application/json")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue