Skip to content

Commit

Permalink
Merge pull request #3691 from ethereum/fix-tests
Browse files Browse the repository at this point in the history
Fix tests
  • Loading branch information
hwwhww committed Apr 18, 2024
2 parents 815485b + 313ed1a commit 477fa0e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Empty file.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
@with_all_phases
@spec_state_test
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):
Expand All @@ -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.
run_epoch_processing_to(spec, state, 'process_effective_balance_updates')
# 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
inc = spec.EFFECTIVE_BALANCE_INCREMENT
div = spec.HYSTERESIS_QUOTIENT
Expand Down
2 changes: 1 addition & 1 deletion tests/generators/operations/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@

_new_electra_mods = {key: 'eth2spec.test.electra.block_processing.test_process_' + key for key in [
'attestation',
'consolidation'
'consolidation',
'deposit_receipt',
'execution_layer_withdrawal_request',
'voluntary_exit'
Expand Down

0 comments on commit 477fa0e

Please sign in to comment.