From 32e95849c9a724a1369d6d380f28b0ffb7ff04d7 Mon Sep 17 00:00:00 2001 From: Arun Jangra Date: Fri, 14 Jun 2024 17:35:19 +0530 Subject: [PATCH] fix : lint --- crates/orchestrator/src/tests/workers/mod.rs | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/crates/orchestrator/src/tests/workers/mod.rs b/crates/orchestrator/src/tests/workers/mod.rs index 81e1bc43..18f0ee87 100644 --- a/crates/orchestrator/src/tests/workers/mod.rs +++ b/crates/orchestrator/src/tests/workers/mod.rs @@ -60,11 +60,10 @@ async fn test_snos_worker(#[case] db_val: bool) -> Result<(), Box> { } // Queue function call simulations - queue.expect_send_message_to_queue().returning(|_, _, _| Ok(())).withf( - |queue, _payload, _delay| { - queue == JOB_PROCESSING_QUEUE - } - ); + queue + .expect_send_message_to_queue() + .returning(|_, _, _| Ok(())) + .withf(|queue, _payload, _delay| queue == JOB_PROCESSING_QUEUE); // mock block number (madara) : 5 let rpc_response_block_number = block; @@ -73,7 +72,6 @@ async fn test_snos_worker(#[case] db_val: bool) -> Result<(), Box> { init_config(Some(format!("http://localhost:{}", server.port())), Some(db), Some(queue), Some(da_client)).await; config_force_init(config).await; - // mocking block call let rpc_block_call_mock = server.mock(|when, then| { when.path("/").body_contains("starknet_blockNumber");