From 60ab077adc571c7f08969489b33cd1b91d4eaae1 Mon Sep 17 00:00:00 2001 From: Petar Radovic Date: Thu, 19 Mar 2026 17:21:42 +0100 Subject: [PATCH] reduce the security param in tests --- bedrock/scripts/run_logos_blockchain_node.sh | 19 +++++-------------- integration_tests/tests/indexer.rs | 2 +- 2 files changed, 6 insertions(+), 15 deletions(-) diff --git a/bedrock/scripts/run_logos_blockchain_node.sh b/bedrock/scripts/run_logos_blockchain_node.sh index cc5c11a2..13ab2de2 100755 --- a/bedrock/scripts/run_logos_blockchain_node.sh +++ b/bedrock/scripts/run_logos_blockchain_node.sh @@ -11,19 +11,10 @@ export CFG_FILE_PATH="/config.yaml" \ /usr/bin/logos-blockchain-cfgsync-client -# Wait for deployment settings to be available (generated after all nodes register) -echo "Waiting for deployment settings from cfgsync..." -RETRIES=0 -MAX_RETRIES=60 -until curl -sf "${CFG_SERVER_ADDR}/deployment-settings" -o /deployment-settings.yaml; do - RETRIES=$((RETRIES + 1)) - if [ "$RETRIES" -ge "$MAX_RETRIES" ]; then - echo "Failed to download deployment settings after ${MAX_RETRIES} attempts" - exit 1 - fi - echo "Deployment settings not ready yet, retrying in 1s... (${RETRIES}/${MAX_RETRIES})" - sleep 1 -done -echo "Deployment settings downloaded successfully" +# Download deployment settings generated by cfgsync +curl -sf "${CFG_SERVER_ADDR}/deployment-settings" -o /deployment-settings.yaml + +# Set security parameter to 10 to keep integration tests within the 10 minute timeout +sed -i 's/security_param: 30/security_param: 10/' /deployment-settings.yaml exec /usr/bin/logos-blockchain-node /config.yaml --deployment /deployment-settings.yaml diff --git a/integration_tests/tests/indexer.rs b/integration_tests/tests/indexer.rs index 768cf7e5..0b947135 100644 --- a/integration_tests/tests/indexer.rs +++ b/integration_tests/tests/indexer.rs @@ -13,7 +13,7 @@ use tokio::test; use wallet::cli::{Command, programs::native_token_transfer::AuthTransferSubcommand}; /// Timeout in milliseconds to reliably await for block finalization. -const L2_TO_L1_TIMEOUT_MILLIS: u64 = 1_200_000; +const L2_TO_L1_TIMEOUT_MILLIS: u64 = 600_000; #[test] async fn indexer_test_run() -> Result<()> {