diff --git a/src/vit-testing/valgrind/src/bin/valgrind.rs b/src/vit-testing/valgrind/src/bin/valgrind.rs index edc149ed85..0574a30e43 100644 --- a/src/vit-testing/valgrind/src/bin/valgrind.rs +++ b/src/vit-testing/valgrind/src/bin/valgrind.rs @@ -75,7 +75,7 @@ async fn main() { let block0_content = server_stub.block0(); - let block0 = warp::path!("block0").map(move || Ok(block0_content.clone())); + let block0 = warp::path!("block0").map(move || block0_content.clone()); root.and( proposals diff --git a/src/vit-testing/vitup/src/mode/mock/rest/mod.rs b/src/vit-testing/vitup/src/mode/mock/rest/mod.rs index a211e6d575..c5ed6f8376 100644 --- a/src/vit-testing/vitup/src/mode/mock/rest/mod.rs +++ b/src/vit-testing/vitup/src/mode/mock/rest/mod.rs @@ -225,7 +225,9 @@ pub async fn start_rest_server(context: ContextLock) -> Result<(), Error> { let span = span!(Level::INFO, "rest api call received"); let _enter = span.enter(); tracing::info!("get block0"); - Ok::>(context.read().unwrap().block0_bin()) + //unwrapping is ok because this is a test module + let context_result = context.read().unwrap(); + context_result.block0_bin() }) .with(warp::reply::with::headers(default_headers()));