Enable more tests (#442)

* enable all sanity slots tests

* enable more tests in sanity blocks

* win64 strikes again #435

* workaround invalid handle in win64 CI

* empty_epoch_transition_not_finalizing only valid in minimal preset

* sanity block ETH1 data votes are also minimal only
This commit is contained in:
Mamy Ratsimbazafy 2019-09-12 17:28:33 -04:00 committed by GitHub
parent 1f05e1cdb2
commit 6be5805462
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 18 additions and 24 deletions

View File

@ -62,6 +62,7 @@ template runTest(identifier: untyped) =
`testImpl _ voluntary_exit _ identifier`()
suite "Official - Operations - Voluntary exit " & preset():
skipWin64:
runTest(success)
runTest(invalid_signature)
runTest(success_exit_queue)

View File

@ -80,11 +80,11 @@ suite "Official - Sanity - Blocks " & preset():
let done = state_transition(stateRef[], blck, flags = {skipValidation})
runValidTest("Skipped Slots", skipped_slots, 1)
when false: # TODO: failing due to state_roots[8]
runValidTest("Empty epoch transition", empty_epoch_transition, 1)
when const_preset=="minimal":
skipWin64:
runValidTest("Empty epoch transition not finalizing", empty_epoch_transition_not_finalizing, 1)
runValidTest("Proposer slashing", proposer_slashing, 1)
when false: # TODO: Assert spec/crypto.nim(156, 12) `x.kind == Real and other.kind == Real`
runValidTest("Attester slashing", attester_slashing, 1)
# TODO: Expected deposit in block
@ -95,14 +95,10 @@ suite "Official - Sanity - Blocks " & preset():
when false: # TODO: Assert spec/crypto.nim(156, 12) `x.kind == Real and other.kind == Real`
runValidTest("Attestation", attestation, 2)
when false: # TODO: failing due to state_roots[8]
runValidTest("Voluntary exit", voluntary_exit, 2)
runValidTest("Balance-driven status transitions", balance_driven_status_transitions, 1)
runValidTest("Historical batch", historical_batch, 1)
when false: # TODO: `stateRef3870603.block_roots[idx3874628] == postRef3870605.block_roots[idx3874628]`
# stateRef3856003.block_roots[16] = 06013007F8A1D4E310344192C5DF6157B1F9F0F5B3A8404103ED822DF47CD85D
# postRef3856005.block_roots[16] = 73F47FF01C106CC82BF839C953C4171E019A22590D762076306F4CEE1CB77583
when const_preset=="minimal":
skipWin64:
runValidTest("ETH1 data votes consensus", eth1_data_votes_consensus, 17)
runValidTest("ETH1 data votes no consensus", eth1_data_votes_no_consensus, 16)

View File

@ -46,11 +46,8 @@ template runTest(testName: string, identifier: untyped, num_slots: uint64): unty
suite "Official - Sanity - Slots " & preset():
runTest("Advance 1 slot", slots_1, 1)
runTest("Advance 2 slots", slots_2, 2)
when false: # TODO: issue in active_index_roots - https://github.com/status-im/nim-beacon-chain/issues/373
runTest("Advance an empty epoch", empty_epoch, SLOTS_PER_EPOCH)
when false: # TODO: issue in state_roots
const DoubleEpoch = SLOTS_PER_EPOCH.uint64*2 # workaround undeclared identifier "double_empty_epoch"
runTest("Advance 2 empty epochs", double_empty_epoch, DoubleEpoch)