From 6dfb4bbb3df3709ca574d3dca6932873b90c33eb Mon Sep 17 00:00:00 2001 From: Rouven Himmelstein Date: Mon, 6 Jun 2022 21:09:43 +0200 Subject: [PATCH] fix: broken IT --- .gitignore | 1 + src/integration_test_resources_api.rs | 7 ++++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 2f8fa0f..c0acf16 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ /target .idea cache +test.sh \ No newline at end of file diff --git a/src/integration_test_resources_api.rs b/src/integration_test_resources_api.rs index e9ff2a8..935547f 100644 --- a/src/integration_test_resources_api.rs +++ b/src/integration_test_resources_api.rs @@ -313,10 +313,11 @@ fn build_app( >, > { scheduler::init(); - scheduler::fetch_resources(resource_reader.clone(), kv_writer_mutex); + scheduler::fetch_resources(resource_reader.clone(), kv_writer_mutex.clone()); App::new() - .app_data(web::Data::new(kv_reader.clone())) - .app_data(web::Data::new(resource_reader.clone())) + .app_data(web::Data::new(kv_reader)) + .app_data(web::Data::new(resource_reader)) + .app_data(web::Data::new(kv_writer_mutex)) .service( web::scope("/api/resources") .service(resource_endpoint::list_all_resources)