Explain why the tests check for Altair twice

This commit is contained in:
Etan Kissling 2022-07-15 12:21:48 +02:00
parent 88a69512b2
commit 73279f8382
No known key found for this signature in database
GPG Key ID: B21DA824C5A3D03D
1 changed files with 3 additions and 3 deletions

View File

@ -104,7 +104,7 @@ def compute_start_slot_at_next_sync_committee_period(spec, state):
@with_presets([MINIMAL], reason="too slow")
def test_light_client_sync(spec, state):
if state.fork.current_version == spec.config.GENESIS_FORK_VERSION:
return # Test requires Altair or later
return # Test requires Altair or later (`make test` does not honor phases)
# Start test
test = yield from setup_test(spec, state)
@ -321,7 +321,7 @@ def test_light_client_sync(spec, state):
@with_presets([MINIMAL], reason="too slow")
def test_supply_sync_committee_from_past_update(spec, state):
if state.fork.current_version == spec.config.GENESIS_FORK_VERSION:
return # Test requires Altair or later
return # Test requires Altair or later (`make test` does not honor phases)
# Advance the chain, so that a `LightClientUpdate` from the past is available
next_slots(spec, state, spec.SLOTS_PER_EPOCH * 2 - 1)
@ -353,7 +353,7 @@ def test_supply_sync_committee_from_past_update(spec, state):
@with_presets([MINIMAL], reason="too slow")
def test_advance_finality_without_sync_committee(spec, state):
if state.fork.current_version == spec.config.GENESIS_FORK_VERSION:
return # Test requires Altair or later
return # Test requires Altair or later (`make test` does not honor phases)
# Start test
test = yield from setup_test(spec, state)