Fix Tide tests
This commit is contained in:
parent
25887b35ab
commit
2dcb9c654b
|
@ -124,7 +124,7 @@ pub async fn receive_batch_request_opts<State: Clone + Send + Sync + 'static>(
|
|||
opts: MultipartOptions,
|
||||
) -> tide::Result<async_graphql::BatchRequest> {
|
||||
if request.method() == Method::Get {
|
||||
request.query()
|
||||
request.query::<async_graphql::Request>().map(Into::into)
|
||||
} else {
|
||||
let body = request.take_body();
|
||||
let content_type = request
|
||||
|
|
|
@ -57,13 +57,8 @@ fn quickstart() -> Result<()> {
|
|||
.no_proxy()
|
||||
.build()
|
||||
.unwrap()
|
||||
.get(
|
||||
format!(
|
||||
"http://{}?query=%7B%20add%28a%3A%2010%2C%20b%3A%2020%29%20%7D",
|
||||
listen_addr
|
||||
)
|
||||
.as_str(),
|
||||
)
|
||||
.get(format!("http://{}", listen_addr).as_str())
|
||||
.query(&[("query", "{ add(a: 10, b: 20) }")])
|
||||
.send()
|
||||
.await?;
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user