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