fix genesis tests
This commit is contained in:
parent
da090b67f6
commit
64b02ebecc
|
@ -39,7 +39,7 @@ def test_is_valid_genesis_state_false_invalid_timestamp(spec):
|
||||||
state = create_valid_beacon_state(spec)
|
state = create_valid_beacon_state(spec)
|
||||||
state.genesis_time = spec.MIN_GENESIS_TIME - 1
|
state.genesis_time = spec.MIN_GENESIS_TIME - 1
|
||||||
|
|
||||||
yield from run_is_valid_genesis_state(spec, state, valid=True)
|
yield from run_is_valid_genesis_state(spec, state, valid=False)
|
||||||
|
|
||||||
|
|
||||||
@with_phases(['phase0'])
|
@with_phases(['phase0'])
|
||||||
|
@ -51,13 +51,14 @@ def test_is_valid_genesis_state_true_more_balance(spec):
|
||||||
yield from run_is_valid_genesis_state(spec, state, valid=True)
|
yield from run_is_valid_genesis_state(spec, state, valid=True)
|
||||||
|
|
||||||
|
|
||||||
@with_phases(['phase0'])
|
# TODO: not part of the genesis function yet. Erroneously merged.
|
||||||
@spectest_with_bls_switch
|
# @with_phases(['phase0'])
|
||||||
def test_is_valid_genesis_state_false_not_enough_balance(spec):
|
# @spectest_with_bls_switch
|
||||||
state = create_valid_beacon_state(spec)
|
# def test_is_valid_genesis_state_false_not_enough_balance(spec):
|
||||||
state.validators[0].effective_balance = spec.MAX_EFFECTIVE_BALANCE - 1
|
# state = create_valid_beacon_state(spec)
|
||||||
|
# state.validators[0].effective_balance = spec.MAX_EFFECTIVE_BALANCE - 1
|
||||||
yield from run_is_valid_genesis_state(spec, state, valid=False)
|
#
|
||||||
|
# yield from run_is_valid_genesis_state(spec, state, valid=False)
|
||||||
|
|
||||||
|
|
||||||
@with_phases(['phase0'])
|
@with_phases(['phase0'])
|
||||||
|
|
Loading…
Reference in New Issue