mirror of
https://github.com/status-im/nimbus-eth2.git
synced 2025-02-18 17:37:33 +00:00
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):
|
enumAllSerializedFields(RecordType):
|
||||||
result = fieldName
|
result = fieldName
|
||||||
|
|
||||||
func hasSigningRoot(T: type): bool {.compileTime.} =
|
|
||||||
lastFieldName(T) == "signature"
|
|
||||||
|
|
||||||
func signingRoot*(obj: object): Eth2Digest =
|
func signingRoot*(obj: object): Eth2Digest =
|
||||||
const lastField = lastFieldName(obj.type)
|
const lastField = lastFieldName(obj.type)
|
||||||
merkelizeFields:
|
merkelizeFields:
|
||||||
|
@ -26,7 +26,9 @@ import # Unit test
|
|||||||
./test_peer_pool
|
./test_peer_pool
|
||||||
|
|
||||||
import # Refactor state transition unit tests
|
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_deposits,
|
||||||
./spec_block_processing/test_process_attestation,
|
./spec_block_processing/test_process_attestation,
|
||||||
./spec_epoch_processing/test_process_justification_and_finalization
|
./spec_epoch_processing/test_process_justification_and_finalization
|
||||||
|
@ -4,7 +4,7 @@ import
|
|||||||
../beacon_chain/[conf, eth2_network]
|
../beacon_chain/[conf, eth2_network]
|
||||||
|
|
||||||
template asyncTest*(name, body: untyped) =
|
template asyncTest*(name, body: untyped) =
|
||||||
test name:
|
timedTest name:
|
||||||
proc scenario {.async.} = body
|
proc scenario {.async.} = body
|
||||||
waitFor scenario()
|
waitFor scenario()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user