remove unused hasSigningRoot(...); stop running time-consuming-but-stubbed-out tests; add timing for peer connection tests
This commit is contained in:
parent
362ef752dc
commit
eef040954c
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in New Issue