From aced661ad5f68992ef5bb73945f8c1b429a39653 Mon Sep 17 00:00:00 2001 From: mrmr1993 Date: Wed, 29 Jan 2025 02:49:23 +0000 Subject: [PATCH] Go back to the assumption that we *will* produce a block This is consistent with compatible. The test will also never work if we don't produce blocks. We should fix that instead. --- buildkite/scripts/rosetta-integration-tests.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/buildkite/scripts/rosetta-integration-tests.sh b/buildkite/scripts/rosetta-integration-tests.sh index 452eaec2acd..66869bfad3c 100755 --- a/buildkite/scripts/rosetta-integration-tests.sh +++ b/buildkite/scripts/rosetta-integration-tests.sh @@ -252,10 +252,10 @@ fi mina client status --json -next_block_time=$(mina client status --json | jq '.next_block_production.timing[1]' | tr -d '"') curr_time=$(date +%s%N | cut -b1-13) -sleep_time=$((($next_block_time - $curr_time) / 10000000)) +next_block_time=$(mina client status --json | jq '.next_block_production.timing[1].time' | tr -d '"') curr_time=$(date +%s%N | cut -b1-13) +sleep_time=$((($next_block_time - $curr_time) / 1000)) echo "Sleeping for ${sleep_time}s until next block is created..." -sleep $sleep_time +sleep ${sleep_time} # Mina Rosetta Checks (spec construction data perf) echo "============ ROSETTA CLI: VALIDATE CONF FILE ${ROSETTA_CONFIGURATION_FILE} =============="