Skip to content

Commit

Permalink
add
Browse files Browse the repository at this point in the history
  • Loading branch information
anonymousGiga committed Jul 11, 2024
1 parent 4eb476b commit b01229f
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions testing/it-test/github-action/action.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
terminate_processes() {
echo "Error occurred. Terminating all processes..."
kill "${pids[@]}" >/dev/null 2>&1
echo "Assertion failed: Historical sync error."
exit 1
}

Expand All @@ -23,8 +24,6 @@ assert_pipeline_finished() {
fi
}



#1.Config
./config.sh
./update_el_genesis_json.sh # Update time of genesis.json
Expand Down Expand Up @@ -67,7 +66,7 @@ echo "start vc2"
sleep 5s

#3.Historical sync test
timeout $duration ./historical1.sh &
timeout $duration bash ./historical1.sh &
pids+=($!)
wait ${pids[-1]}
echo "after first historical sync"
Expand All @@ -80,7 +79,7 @@ if [ $? -ne 0 ]; then
fi

#4.Historical sync test
timeout $duration ./historical2.sh &
timeout $duration bash ./historical2.sh &
pids+=($!)
echo "second historical sync"

Expand Down

0 comments on commit b01229f

Please sign in to comment.