From 16cd54de257dccf737c23b68a7d390d220f91535 Mon Sep 17 00:00:00 2001 From: Danny Ryan Date: Thu, 9 Sep 2021 15:05:52 -0600 Subject: [PATCH] pr feedback --- .../test_process_registry_updates.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/tests/core/pyspec/eth2spec/test/phase0/epoch_processing/test_process_registry_updates.py b/tests/core/pyspec/eth2spec/test/phase0/epoch_processing/test_process_registry_updates.py index 5bcf3a82be..60b126f4c7 100644 --- a/tests/core/pyspec/eth2spec/test/phase0/epoch_processing/test_process_registry_updates.py +++ b/tests/core/pyspec/eth2spec/test/phase0/epoch_processing/test_process_registry_updates.py @@ -307,15 +307,17 @@ def test_activation_queue_activation_and_ejection__1(spec, state): @with_all_phases @spec_state_test def test_activation_queue_activation_and_ejection__churn_limit(spec, state): - num_validators_per_status = spec.get_validator_churn_limit(state) - yield from run_test_activation_queue_activation_and_ejection(spec, state, num_validators_per_status) + churn_limit = spec.get_validator_churn_limit(state) + assert churn_limit == spec.config.MIN_PER_EPOCH_CHURN_LIMIT + yield from run_test_activation_queue_activation_and_ejection(spec, state, churn_limit) @with_all_phases @spec_state_test def test_activation_queue_activation_and_ejection__exceed_churn_limit(spec, state): - num_validators_per_status = spec.get_validator_churn_limit(state) + 1 - yield from run_test_activation_queue_activation_and_ejection(spec, state, num_validators_per_status) + churn_limit = spec.get_validator_churn_limit(state) + assert churn_limit == spec.config.MIN_PER_EPOCH_CHURN_LIMIT + yield from run_test_activation_queue_activation_and_ejection(spec, state, churn_limit + 1) @with_all_phases @@ -339,5 +341,4 @@ def test_activation_queue_activation_and_ejection__scaled_churn_limit(spec, stat def test_activation_queue_activation_and_ejection__exceed_scaled_churn_limit(spec, state): churn_limit = spec.get_validator_churn_limit(state) assert churn_limit > spec.config.MIN_PER_EPOCH_CHURN_LIMIT - num_validators_per_status = churn_limit * 2 - yield from run_test_activation_queue_activation_and_ejection(spec, state, num_validators_per_status) + yield from run_test_activation_queue_activation_and_ejection(spec, state, churn_limt * 2)