Skip to content

Commit 6194a23

Browse files
committed
Update unit test
1 parent ebc8b25 commit 6194a23

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

tests/core/pyspec/eth2spec/test/phase0/unittests/test_config_invariants.py

-3
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,6 @@ def test_networking(spec, state):
7878
assert spec.config.MIN_EPOCHS_FOR_BLOCK_REQUESTS == (
7979
spec.config.MIN_VALIDATOR_WITHDRAWABILITY_DELAY + spec.config.CHURN_LIMIT_QUOTIENT // 2
8080
)
81-
assert spec.config.ATTESTATION_SUBNET_PREFIX_BITS == (
82-
spec.ceillog2(spec.config.ATTESTATION_SUBNET_COUNT) + spec.config.ATTESTATION_SUBNET_EXTRA_BITS
83-
)
8481
assert spec.config.SUBNETS_PER_NODE <= spec.config.ATTESTATION_SUBNET_COUNT
8582
node_id_length = spec.NodeID(1).type_byte_length() # in bytes
8683
assert node_id_length * 8 == spec.NODE_ID_BITS # in bits

tests/core/pyspec/eth2spec/test/phase0/unittests/validator/test_validator_unittest.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -486,8 +486,7 @@ def test_get_aggregate_and_proof_signature(spec, state):
486486

487487
def run_compute_subscribed_subnets_arguments(spec, rng=random.Random(1111)):
488488
node_id = rng.randint(0, 2**256 - 1)
489-
epoch = rng.randint(0, 2**64 - 1)
490-
subnets = spec.compute_subscribed_subnets(node_id, epoch)
489+
subnets = spec.compute_subscribed_subnets(node_id)
491490
assert len(subnets) == spec.config.SUBNETS_PER_NODE
492491

493492

0 commit comments

Comments
 (0)