From b40552848a952bb3f8e7ed1db06c64ecd520a502 Mon Sep 17 00:00:00 2001 From: Denis Makarenko Date: Mon, 17 Jul 2023 22:39:11 +0300 Subject: [PATCH] add criteria setup to integration tests as well --- scripts/deploy_local_instance.py | 4 ++-- scripts/test_solido.py | 17 ++++++++++++++--- 2 files changed, 16 insertions(+), 5 deletions(-) diff --git a/scripts/deploy_local_instance.py b/scripts/deploy_local_instance.py index 7768487ca..6dc0e38a9 100755 --- a/scripts/deploy_local_instance.py +++ b/scripts/deploy_local_instance.py @@ -110,11 +110,11 @@ def __init__(self) -> None: # validator that is actually voting, and earning rewards. current_validators = json.loads(util.solana('validators', '--output', 'json')) - # If we're running on localhost, change the comission + # If we're running on localhost, change the commission if util.get_network() == 'http://127.0.0.1:8899': solido_instance = self.pull_solido() print( - '> Changing validator\'s comission to {}% ...'.format( + '> Changing validator\'s commission to {}% ...'.format( util.MAX_VALIDATION_COMMISSION_PERCENTAGE ) ) diff --git a/scripts/test_solido.py b/scripts/test_solido.py index 34af3b26a..531bf74a8 100755 --- a/scripts/test_solido.py +++ b/scripts/test_solido.py @@ -19,7 +19,6 @@ from util import ( TestAccount, - create_spl_token_account, create_test_account, create_vote_account, get_solido_program_path, @@ -143,8 +142,14 @@ def approve_and_execute(transaction_to_approve: str, signer: TestAccount) -> Non '9', '--max-maintainers', '1', - '--max-commission-percentage', + '--max-commission', str(MAX_VALIDATION_COMMISSION_PERCENTAGE), + '--min-block-production-rate', + '0', + '--min-vote-success-rate', + '0', + '--min-uptime', + '0', '--treasury-fee-share', '5', '--developer-fee-share', @@ -177,8 +182,14 @@ def approve_and_execute(transaction_to_approve: str, signer: TestAccount) -> Non '9', '--max-maintainers', '1', - '--max-commission-percentage', + '--max-commission', str(MAX_VALIDATION_COMMISSION_PERCENTAGE), + '--min-block-production-rate', + '0', + '--min-vote-success-rate', + '0', + '--min-uptime', + '0', '--treasury-fee-share', '5', '--developer-fee-share',