From e8041749a2252121f08c13d8b2ae5c52b57e6bb2 Mon Sep 17 00:00:00 2001 From: Hsiao-Wei Wang Date: Fri, 15 Sep 2023 22:05:26 +0800 Subject: [PATCH] Apply PR feedback. Rename `inbound_limit` to `activation_limit` --- .../deneb/epoch_processing/test_process_registry_updates.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/core/pyspec/eth2spec/test/deneb/epoch_processing/test_process_registry_updates.py b/tests/core/pyspec/eth2spec/test/deneb/epoch_processing/test_process_registry_updates.py index d0b7638c6..4cbcc1ed5 100644 --- a/tests/core/pyspec/eth2spec/test/deneb/epoch_processing/test_process_registry_updates.py +++ b/tests/core/pyspec/eth2spec/test/deneb/epoch_processing/test_process_registry_updates.py @@ -61,7 +61,7 @@ def run_test_activation_churn_limit(spec, state): @with_custom_state(balances_fn=scaled_churn_balances_exceed_activation_churn_limit, threshold_fn=lambda spec: spec.config.EJECTION_BALANCE) @single_phase -def test_activation_churn_limit__greater_than_inbound_limit(spec, state): +def test_activation_churn_limit__greater_than_activation_limit(spec, state): assert spec.get_validator_activation_churn_limit(state) == spec.config.MAX_PER_EPOCH_ACTIVATION_CHURN_LIMIT assert spec.get_validator_churn_limit(state) > spec.config.MAX_PER_EPOCH_ACTIVATION_CHURN_LIMIT yield from run_test_activation_churn_limit(spec, state) @@ -74,7 +74,7 @@ def test_activation_churn_limit__greater_than_inbound_limit(spec, state): @with_custom_state(balances_fn=scaled_churn_balances_equal_activation_churn_limit, threshold_fn=lambda spec: spec.config.EJECTION_BALANCE) @single_phase -def test_activation_churn_limit__equal_to_inbound_limit(spec, state): +def test_activation_churn_limit__equal_to_activation_limit(spec, state): assert spec.get_validator_activation_churn_limit(state) == spec.config.MAX_PER_EPOCH_ACTIVATION_CHURN_LIMIT assert spec.get_validator_churn_limit(state) == spec.config.MAX_PER_EPOCH_ACTIVATION_CHURN_LIMIT yield from run_test_activation_churn_limit(spec, state) @@ -84,7 +84,7 @@ def test_activation_churn_limit__equal_to_inbound_limit(spec, state): @with_presets([MINIMAL], reason="mainnet config leads to larger validator set than limit of public/private keys pre-generated") @spec_state_test -def test_activation_churn_limit__less_than_inbound_limit(spec, state): +def test_activation_churn_limit__less_than_activation_limit(spec, state): assert spec.get_validator_activation_churn_limit(state) < spec.config.MAX_PER_EPOCH_ACTIVATION_CHURN_LIMIT assert spec.get_validator_churn_limit(state) < spec.config.MAX_PER_EPOCH_ACTIVATION_CHURN_LIMIT yield from run_test_activation_churn_limit(spec, state)