From 6194a23b98c7fc8d16fbf0ad70a8c9f0c38a7a32 Mon Sep 17 00:00:00 2001 From: Age Manning Date: Tue, 30 Apr 2024 19:07:13 +1000 Subject: [PATCH] Update unit test --- .../eth2spec/test/phase0/unittests/test_config_invariants.py | 3 --- .../test/phase0/unittests/validator/test_validator_unittest.py | 3 +-- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/tests/core/pyspec/eth2spec/test/phase0/unittests/test_config_invariants.py b/tests/core/pyspec/eth2spec/test/phase0/unittests/test_config_invariants.py index c58f817f7d..171b947a94 100644 --- a/tests/core/pyspec/eth2spec/test/phase0/unittests/test_config_invariants.py +++ b/tests/core/pyspec/eth2spec/test/phase0/unittests/test_config_invariants.py @@ -78,9 +78,6 @@ def test_networking(spec, state): assert spec.config.MIN_EPOCHS_FOR_BLOCK_REQUESTS == ( spec.config.MIN_VALIDATOR_WITHDRAWABILITY_DELAY + spec.config.CHURN_LIMIT_QUOTIENT // 2 ) - assert spec.config.ATTESTATION_SUBNET_PREFIX_BITS == ( - spec.ceillog2(spec.config.ATTESTATION_SUBNET_COUNT) + spec.config.ATTESTATION_SUBNET_EXTRA_BITS - ) assert spec.config.SUBNETS_PER_NODE <= spec.config.ATTESTATION_SUBNET_COUNT node_id_length = spec.NodeID(1).type_byte_length() # in bytes assert node_id_length * 8 == spec.NODE_ID_BITS # in bits diff --git a/tests/core/pyspec/eth2spec/test/phase0/unittests/validator/test_validator_unittest.py b/tests/core/pyspec/eth2spec/test/phase0/unittests/validator/test_validator_unittest.py index f5f417bbaf..c8d220b379 100644 --- a/tests/core/pyspec/eth2spec/test/phase0/unittests/validator/test_validator_unittest.py +++ b/tests/core/pyspec/eth2spec/test/phase0/unittests/validator/test_validator_unittest.py @@ -486,8 +486,7 @@ def test_get_aggregate_and_proof_signature(spec, state): def run_compute_subscribed_subnets_arguments(spec, rng=random.Random(1111)): node_id = rng.randint(0, 2**256 - 1) - epoch = rng.randint(0, 2**64 - 1) - subnets = spec.compute_subscribed_subnets(node_id, epoch) + subnets = spec.compute_subscribed_subnets(node_id) assert len(subnets) == spec.config.SUBNETS_PER_NODE