Add partial network outage before test functionality (#17291)

* Add partial network outage before testing functionality

Allow a percentage of the stake to go offline before an automation test starts

* code review fixes
This commit is contained in:
Ashwin Sekar
2021-05-28 12:53:11 -07:00
committed by GitHub
parent a35024123c
commit e3f5c0005b
4 changed files with 68 additions and 6 deletions

View File

@ -705,7 +705,7 @@ stopNode() {
declare pid=$!
ln -sf "stop-validator-$ipAddress.log" "$netLogDir/stop-validator-$pid.log"
if $block; then
wait $pid
wait $pid || true
else
pids+=("$pid")
fi