reduce the security param in tests

This commit is contained in:
Petar Radovic 2026-03-19 17:21:42 +01:00
parent d6fc025f91
commit 60ab077adc
2 changed files with 6 additions and 15 deletions

View File

@ -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

View File

@ -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<()> {