diff --git a/.github/scripts/test_db_sync.sh b/.github/scripts/test_db_sync.sh index d3c037bd..3f383900 100755 --- a/.github/scripts/test_db_sync.sh +++ b/.github/scripts/test_db_sync.sh @@ -138,6 +138,7 @@ chmod +x aleph-node --node-key-file "${BASE_PATH}/p2p_secret" \ ${DB_ARG[*]} \ --no-mdns 1>/dev/null 2> "${BASE_PATH}/aleph-node.log" & +ALEPH_NODE_PID=$! get_current_block echo "Syncing to ${TARGET_BLOCK} starting at ${CURRENT_BLOCK}." @@ -154,3 +155,5 @@ if [[ "${MARK_SNAPSHOT_AS_LATEST}" == "true" ]]; then --website-redirect "${S3_URL}/${SNAPSHOT_DAY}/${S3_SNAPSHOT_PREFIX}_${SNAPSHOT_DAY}.tar.gz" fi +kill -9 $ALEPH_NODE_PID +