From 1b3e9aa7ae23f8e1fc4b7d87ba2a2ccdae66fdcb Mon Sep 17 00:00:00 2001 From: Rajat Jindal Date: Wed, 27 Sep 2023 07:26:53 +0530 Subject: [PATCH] e2e-tests: disable connection pool Signed-off-by: Rajat Jindal --- crates/e2e-testing/src/http_asserts.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/e2e-testing/src/http_asserts.rs b/crates/e2e-testing/src/http_asserts.rs index 68596e9926..314427e156 100644 --- a/crates/e2e-testing/src/http_asserts.rs +++ b/crates/e2e-testing/src/http_asserts.rs @@ -67,7 +67,9 @@ pub async fn create_request(method: Method, url: &str, body: &str) -> Result Client> { let connector = HttpsConnector::new(); - Client::builder().build::<_, hyper::Body>(connector) + Client::builder() + .pool_max_idle_per_host(0) + .build::<_, hyper::Body>(connector) } pub async fn make_request(method: Method, path: &str, body: &str) -> Result> {