Test: fix test_multinode.sh

This commit is contained in:
Grégoire Henry 2018-04-26 01:28:00 +02:00
parent 137613ee9a
commit fe9c06b7ca
2 changed files with 11 additions and 2 deletions

View File

@ -49,6 +49,7 @@ display_logs() {
### Node/Client instances control ### Node/Client instances control
client_instances=() client_instances=()
admin_client_instances=()
start_node() { start_node() {
local id=${1:-1} local id=${1:-1}
@ -58,6 +59,7 @@ start_node() {
wait_for_the_node_to_be_ready wait_for_the_node_to_be_ready
add_sandboxed_bootstrap_identities add_sandboxed_bootstrap_identities
client_instances+=("$client") client_instances+=("$client")
admin_client_instances+=("$admin_client")
export "client$id=$client" export "client$id=$client"
} }

View File

@ -19,10 +19,17 @@ done
for client in "${client_instances[@]}"; do for client in "${client_instances[@]}"; do
echo echo
echo "### $client p2p stat" echo "### $client bootstrapped"
echo echo
$client bootstrapped $client bootstrapped
$admin_client network stat echo
done
for admin_client in "${admin_client_instances[@]}"; do
echo
echo "### $admin_client network stat"
echo
$admin_client p2p stat
echo echo
done done