From f3573f086d771a57062d8ec685794939da4e1c63 Mon Sep 17 00:00:00 2001 From: Raneet Debnath Date: Fri, 18 Nov 2022 18:38:03 +0530 Subject: [PATCH] fix: timer condition --- integration-tests/smoke_test.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/integration-tests/smoke_test.sh b/integration-tests/smoke_test.sh index ed9ce0e3ef..d4a4ed2763 100644 --- a/integration-tests/smoke_test.sh +++ b/integration-tests/smoke_test.sh @@ -18,14 +18,14 @@ do exit 1 fi - if (( $balance > $balanceInit )); then + if (( $balance > $balanceInit )) && [ $stateSyncFound != "true" ]; then stateSyncTime=$(( SECONDS - start_time )) stateSyncFound="true" fi checkpointID=$(curl -sL http://localhost:1317/checkpoints/latest | jq .result.id) - if [ $checkpointID != "null" ]; then + if [ $checkpointID != "null" ] && [ $checkpointFound != "true"]; then checkpointTime=$(( SECONDS - start_time )) checkpointFound="true" fi