From 157f502a18c0b7484cf964310ebb8634b7f3c11c Mon Sep 17 00:00:00 2001 From: rtso <8248583+rtso@users.noreply.github.com> Date: Thu, 7 Nov 2024 15:19:56 -0500 Subject: [PATCH] avoid doing long lookups --- .../src/sdk_tests/objects_processor_tests.rs | 5 +++-- .../integration-tests/src/sdk_tests/stake_processor_tests.rs | 5 +++-- .../src/sdk_tests/token_v2_processor_tests.rs | 5 +++-- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/rust/integration-tests/src/sdk_tests/objects_processor_tests.rs b/rust/integration-tests/src/sdk_tests/objects_processor_tests.rs index fea1d3d25..c7b946693 100644 --- a/rust/integration-tests/src/sdk_tests/objects_processor_tests.rs +++ b/rust/integration-tests/src/sdk_tests/objects_processor_tests.rs @@ -29,8 +29,9 @@ pub fn setup_objects_processor_config( let objects_processor_config = ObjectsProcessorConfig { default_config: default_processor_config, - query_retries: ObjectsProcessorConfig::default_query_retries(), - query_retry_delay_ms: ObjectsProcessorConfig::default_query_retry_delay_ms(), + // Avoid doing long lookups in tests + query_retries: 1, + query_retry_delay_ms: 100, }; let processor_config = ProcessorConfig::ObjectsProcessor(objects_processor_config); diff --git a/rust/integration-tests/src/sdk_tests/stake_processor_tests.rs b/rust/integration-tests/src/sdk_tests/stake_processor_tests.rs index 10d5b89b5..f9141c130 100644 --- a/rust/integration-tests/src/sdk_tests/stake_processor_tests.rs +++ b/rust/integration-tests/src/sdk_tests/stake_processor_tests.rs @@ -27,8 +27,9 @@ pub async fn setup_stake_processor_config( channel_size: 100, deprecated_tables: HashSet::new(), }, - query_retries: 10, - query_retry_delay_ms: 1000, + // Avoid doing long lookups in tests + query_retries: 1, + query_retry_delay_ms: 100, }; let processor_config = ProcessorConfig::StakeProcessor(default_processor_config); diff --git a/rust/integration-tests/src/sdk_tests/token_v2_processor_tests.rs b/rust/integration-tests/src/sdk_tests/token_v2_processor_tests.rs index de8c3e76e..7443db1dc 100644 --- a/rust/integration-tests/src/sdk_tests/token_v2_processor_tests.rs +++ b/rust/integration-tests/src/sdk_tests/token_v2_processor_tests.rs @@ -28,8 +28,9 @@ pub fn setup_token_v2_processor_config( }; let token_v2_processor_config = TokenV2ProcessorConfig { default_config: default_processor_config, - query_retries: TokenV2ProcessorConfig::default_query_retries(), - query_retry_delay_ms: TokenV2ProcessorConfig::default_query_retry_delay_ms(), + // Avoid doing long lookups in tests + query_retries: 1, + query_retry_delay_ms: 100, }; let processor_config = ProcessorConfig::TokenV2Processor(token_v2_processor_config);