From 22a98bd27adb61a02dfc759406fbef0716e24836 Mon Sep 17 00:00:00 2001 From: Michael Vines Date: Tue, 26 May 2020 16:20:28 -0700 Subject: [PATCH] Wait for one slot to be produced (#10257) automerge --- ci/run-sanity.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ci/run-sanity.sh b/ci/run-sanity.sh index c2265e6d87..fd6a7d88cb 100755 --- a/ci/run-sanity.sh +++ b/ci/run-sanity.sh @@ -19,6 +19,9 @@ while [[ ! -f config/run/init-completed ]]; do fi done +while [[ $($solana_cli slot --commitment recent) -eq 0 ]]; do + sleep 1 +done curl -X POST -H 'Content-Type: application/json' -d '{"jsonrpc":"2.0","id":1, "method":"validatorExit"}' http://localhost:8899 wait $pid