Fix test_invalid_field juniper::http (#380)

This commit is contained in:
jekshmek 2019-06-25 09:08:36 +03:00 committed by Christian Legnitto
parent 49f723a3dd
commit 675f34bc46

View file

@ -329,7 +329,7 @@ pub mod tests {
fn test_invalid_field<T: HTTPIntegration>(integration: &T) { fn test_invalid_field<T: HTTPIntegration>(integration: &T) {
// {hero{blah}} // {hero{blah}}
let response = integration.get("/?query=%7Bhero%blah%7D%7D"); let response = integration.get("/?query=%7Bhero%7Bblah%7D%7D");
assert_eq!(response.status_code, 400); assert_eq!(response.status_code, 400);
let response = integration.post("/", r#"{"query": "{hero{blah}}"}"#); let response = integration.post("/", r#"{"query": "{hero{blah}}"}"#);
assert_eq!(response.status_code, 400); assert_eq!(response.status_code, 400);