Merge pull request #3691 from ethereum/fix-tests

Fix tests
This commit is contained in:
Hsiao-Wei Wang 2024-04-18 18:22:18 +09:00 committed by GitHub
commit 477fa0e3ca
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

View File

@ -9,7 +9,7 @@ from eth2spec.test.helpers.forks import is_post_electra
@with_all_phases @with_all_phases
@spec_state_test @spec_state_test
def test_effective_balance_hysteresis(spec, state): def test_effective_balance_hysteresis(spec, state):
run_test_effective_balance_hysteresis(spec, state) yield from run_test_effective_balance_hysteresis(spec, state)
def run_test_effective_balance_hysteresis(spec, state, with_compounding_credentials=False): def run_test_effective_balance_hysteresis(spec, state, with_compounding_credentials=False):
@ -18,7 +18,7 @@ def run_test_effective_balance_hysteresis(spec, state, with_compounding_credenti
# Then overwrite the balances, we only want to focus to be on the hysteresis based changes. # Then overwrite the balances, we only want to focus to be on the hysteresis based changes.
run_epoch_processing_to(spec, state, 'process_effective_balance_updates') run_epoch_processing_to(spec, state, 'process_effective_balance_updates')
# Set some edge cases for balances # Set some edge cases for balances
max = spec.MAX_EFFECTIVE_BALANCE_ELECTRA if with_compounding_credentials else spec.MIN_ACTIVATION_BALANCE max = spec.MAX_EFFECTIVE_BALANCE_ELECTRA if with_compounding_credentials else spec.MAX_EFFECTIVE_BALANCE
min = spec.config.EJECTION_BALANCE min = spec.config.EJECTION_BALANCE
inc = spec.EFFECTIVE_BALANCE_INCREMENT inc = spec.EFFECTIVE_BALANCE_INCREMENT
div = spec.HYSTERESIS_QUOTIENT div = spec.HYSTERESIS_QUOTIENT

View File

@ -45,7 +45,7 @@ if __name__ == "__main__":
_new_electra_mods = {key: 'eth2spec.test.electra.block_processing.test_process_' + key for key in [ _new_electra_mods = {key: 'eth2spec.test.electra.block_processing.test_process_' + key for key in [
'attestation', 'attestation',
'consolidation' 'consolidation',
'deposit_receipt', 'deposit_receipt',
'execution_layer_withdrawal_request', 'execution_layer_withdrawal_request',
'voluntary_exit' 'voluntary_exit'