Count testnet nodes as a part of sanity

This commit is contained in:
Michael Vines
2018-07-19 11:56:40 -07:00
parent 966c55f58e
commit 17d927ac74
2 changed files with 17 additions and 10 deletions

View File

@ -4,6 +4,7 @@
#
cd "$(dirname "$0")/.."
source multinode-demo/common.sh
TESTNET=$1
if [[ -z $TESTNET ]]; then
@ -13,5 +14,11 @@ fi
echo "--- $TESTNET: wallet sanity"
multinode-demo/test/wallet-sanity.sh $TESTNET
echo --- fin
echo "--- $TESTNET: node count"
if [[ $TESTNET = testnet.solana.com ]]; then
echo "TODO: Remove this block when a release > 0.7.0 is deployed"
else
$solana_client_demo $TESTNET 50 -c # <-- Expect to see at least 50 nodes
fi
exit 0