Skip to content

Commit

Permalink
Merge pull request #16590 from MinaProtocol/feature/fix-logic-for-ros…
Browse files Browse the repository at this point in the history
…etta-integration-test

[develop] Fix logic in the rosetta integration test
  • Loading branch information
mrmr1993 authored Feb 8, 2025
2 parents fc9d507 + b634c57 commit 63d6db1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions buildkite/scripts/rosetta-integration-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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} =============="
Expand Down

0 comments on commit 63d6db1

Please sign in to comment.