From dbbf0c1969705cb47e1f974bb2b63910780ef6c4 Mon Sep 17 00:00:00 2001 From: Koxiaet <38139193+Koxiaet@users.noreply.github.com> Date: Fri, 25 Sep 2020 19:50:04 +0100 Subject: [PATCH] Fix Tide tests --- integrations/tide/src/lib.rs | 2 +- integrations/tide/tests/graphql.rs | 9 ++------- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/integrations/tide/src/lib.rs b/integrations/tide/src/lib.rs index faa7bd96..7ffae03d 100644 --- a/integrations/tide/src/lib.rs +++ b/integrations/tide/src/lib.rs @@ -124,7 +124,7 @@ pub async fn receive_batch_request_opts( opts: MultipartOptions, ) -> tide::Result { if request.method() == Method::Get { - request.query() + request.query::().map(Into::into) } else { let body = request.take_body(); let content_type = request diff --git a/integrations/tide/tests/graphql.rs b/integrations/tide/tests/graphql.rs index 4cbf726d..aa3a4445 100644 --- a/integrations/tide/tests/graphql.rs +++ b/integrations/tide/tests/graphql.rs @@ -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?;