From cfb21b94e8a6a8902ea671cde62051d1b14e5068 Mon Sep 17 00:00:00 2001 From: mpostma Date: Mon, 30 Nov 2020 15:35:28 +0100 Subject: [PATCH] fix tests --- meilisearch-http/tests/common.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/meilisearch-http/tests/common.rs b/meilisearch-http/tests/common.rs index 3b875b4d2..30a28bb1b 100644 --- a/meilisearch-http/tests/common.rs +++ b/meilisearch-http/tests/common.rs @@ -160,7 +160,7 @@ impl Server { eprintln!("get_request: {}", url); let mut app = - test::init_service(meilisearch_http::create_app(&self.data).wrap(NormalizePath)).await; + test::init_service(meilisearch_http::create_app(&self.data, true).wrap(NormalizePath)).await; let req = test::TestRequest::get().uri(url).to_request(); let res = test::call_service(&mut app, req).await; @@ -175,7 +175,7 @@ impl Server { eprintln!("post_request: {}", url); let mut app = - test::init_service(meilisearch_http::create_app(&self.data).wrap(NormalizePath)).await; + test::init_service(meilisearch_http::create_app(&self.data, true).wrap(NormalizePath)).await; let req = test::TestRequest::post() .uri(url) @@ -204,7 +204,7 @@ impl Server { eprintln!("put_request: {}", url); let mut app = - test::init_service(meilisearch_http::create_app(&self.data).wrap(NormalizePath)).await; + test::init_service(meilisearch_http::create_app(&self.data, true).wrap(NormalizePath)).await; let req = test::TestRequest::put() .uri(url) @@ -233,7 +233,7 @@ impl Server { eprintln!("delete_request: {}", url); let mut app = - test::init_service(meilisearch_http::create_app(&self.data).wrap(NormalizePath)).await; + test::init_service(meilisearch_http::create_app(&self.data, true).wrap(NormalizePath)).await; let req = test::TestRequest::delete().uri(url).to_request(); let res = test::call_service(&mut app, req).await;