Skip to content

Commit cc991e6

Browse files
committed
Adjust to new StatusCode handler
1 parent 2cfc1a4 commit cc991e6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/http_execution.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ end
1717

1818
# handle_error
1919
@test_throws ArgumentError test_error_handler(GraphQLClient.handle_error, ArgumentError("msg"))
20-
@test_throws HTTP.StatusError test_error_handler(GraphQLClient.handle_error, HTTP.StatusError(404, HTTP.Response(404;request=HTTP.Request(), body="{}")))
21-
@test_throws GraphQLClient.GraphQLError test_error_handler(GraphQLClient.handle_error, HTTP.StatusError(400, HTTP.Response(400;request=HTTP.Request(), body="{}")))
20+
@test_throws HTTP.StatusError test_error_handler(GraphQLClient.handle_error, HTTP.StatusError(404, "POST", "", HTTP.Response(404;request=HTTP.Request(), body="{}")))
21+
@test_throws GraphQLClient.GraphQLError test_error_handler(GraphQLClient.handle_error, HTTP.StatusError(400, "POST", "", HTTP.Response(400;request=HTTP.Request(), body="{}")))
2222

2323
# handle_deserialisation_error
2424
@test_throws MethodError test_error_handler(GraphQLClient.handle_deserialisation_error, MethodError(""), "", "")

0 commit comments

Comments
 (0)