remove unused hasSigningRoot(...); stop running time-consuming-but-stubbed-out tests; add timing for peer connection tests

This commit is contained in:
Dustin Brody 2019-12-06 17:07:58 +01:00
parent 362ef752dc
commit eef040954c
3 changed files with 4 additions and 5 deletions

View File

@ -598,9 +598,6 @@ func lastFieldName(RecordType: type): string {.compileTime.} =
enumAllSerializedFields(RecordType):
result = fieldName
func hasSigningRoot(T: type): bool {.compileTime.} =
lastFieldName(T) == "signature"
func signingRoot*(obj: object): Eth2Digest =
const lastField = lastFieldName(obj.type)
merkelizeFields:

View File

@ -26,7 +26,9 @@ import # Unit test
./test_peer_pool
import # Refactor state transition unit tests
./spec_block_processing/test_genesis,
# TODO re-enable when useful
# ./spec_block_processing/test_genesis,
# In mainnet these take 2 minutes and are empty TODOs
./spec_block_processing/test_process_deposits,
./spec_block_processing/test_process_attestation,
./spec_epoch_processing/test_process_justification_and_finalization

View File

@ -4,7 +4,7 @@ import
../beacon_chain/[conf, eth2_network]
template asyncTest*(name, body: untyped) =
test name:
timedTest name:
proc scenario {.async.} = body
waitFor scenario()