Skip to content

Commit

Permalink
graphql: fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
fjl committed Aug 3, 2020
1 parent 1c639bd commit e11bc43
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions graphql/graphql_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@ func TestGraphQLHTTPOnSamePort_GQLRequest_Unsuccessful(t *testing.T) {
t.Fatalf("could not read from response body: %v", err)
}
// make sure the request is not handled successfully
expected := "{\"jsonrpc\":\"2.0\",\"id\":null,\"error\":{\"code\":-32600,\"message\":\"invalid request\"}}\n"
assert.Equal(t, string(bodyBytes), expected)
assert.Equal(t, 404, resp.StatusCode)
assert.Equal(t, "404 page not found\n", string(bodyBytes))
}

func createNode(t *testing.T, gqlEnabled bool) *node.Node {
Expand Down

0 comments on commit e11bc43

Please sign in to comment.