Problem: Changes to format for validator keys broke some tests

Solution: Aligned the tests to reflect the changed key format
This commit is contained in:
z-bowen 2018-09-07 14:15:35 +02:00
parent a6f6b81254
commit d5a0c87e49
2 changed files with 2 additions and 2 deletions

View File

@ -53,7 +53,7 @@ class ValidatorElection(Election):
new_validator = self.asset['data']
public_key = public_key_to_base64(new_validator['public_key'])
public_key = public_key_to_base64(new_validator['public_key']['value'])
power = new_validator['power']
node_id = new_validator['node_id']
status = self.get_status(bigchain)

View File

@ -354,7 +354,7 @@ def test_election_new_upsert_validator_with_tendermint(b, priv_validator_path, u
new_args = Namespace(action='new',
election_type='upsert_validator',
public_key='8eJ8q9ZQpReWyQT5aFCiwtZ5wDZC4eDnCen88p3tQ6ie',
public_key='HHG0IQRybpT6nJMIWWFWhMczCLHt6xcm7eP52GnGuPY=',
power=1,
node_id='unique_node_id_for_test_upsert_validator_new_with_tendermint',
sk=priv_validator_path,