Client,test: add test for demo protocol activation
This commit is contained in:
parent
c2f74f9f9b
commit
c6c9117c3a
@ -9,8 +9,17 @@ start_node 1
|
||||
|
||||
sleep 2
|
||||
|
||||
# autogenerated from the demo source
|
||||
protocol_version="Ps1ZDZdgRP4PFDkzmFpiYtE7gJHioavCMxC96i9zJsK6URwSXSJ"
|
||||
|
||||
$admin_client inject protocol "$test_dir/demo"
|
||||
$admin_client list protocols
|
||||
$client activate protocol $protocol_version with fitness 1 and key dictator
|
||||
answ=$($client rpc call /blocks/head/protocol with {} 2>/dev/null)
|
||||
|
||||
if ! grep "$protocol_version" <<< $answ ; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo
|
||||
echo End of test
|
||||
|
Loading…
Reference in New Issue
Block a user