Run setup.sh foreground in order to avoid timing issues (#2970)

## Issue Addressed

Resolves https://github.com/sigp/lighthouse/pull/2919#issuecomment-1022892369

## Proposed Changes

- Run setup.sh foreground in order to avoid timing issues
This commit is contained in:
Akihito Nakano 2022-01-31 22:55:04 +00:00
parent 139b44342f
commit 736457b562

View File

@ -93,9 +93,9 @@ execute_command_add_PID() {
execute_command_add_PID ganache_test_node.log ./ganache_test_node.sh
sleeping 10
# Delay to get data setup
execute_command setup.log ./setup.sh
sleeping 15
# Setup data
echo "executing: ./setup.sh >> $LOG_DIR/setup.log"
./setup.sh >> $LOG_DIR/setup.log 2>&1
# Delay to let boot_enr.yaml to be created
execute_command_add_PID bootnode.log ./bootnode.sh