mirror of
https://github.com/status-im/nimbus-eth2.git
synced 2025-01-22 04:24:05 +00:00
Attempt to make the test suite green
This commit is contained in:
parent
5ce50b3aca
commit
a897ab9c70
@ -48,5 +48,9 @@ task test, "Run all tests":
|
||||
buildBinary "all_tests", "tests/", "-r -d:release -d:chronicles_log_level=ERROR"
|
||||
# Minimal config
|
||||
buildBinary "all_tests", "tests/", "-r -d:release -d:chronicles_log_level=ERROR -d:const_preset=minimal"
|
||||
|
||||
buildBinary "test_fixture_ssz_static", "tests/official", "-r -d:release -d:chronicles_log_level=DEBUG -d:const_preset=minimal"
|
||||
buildBinary "test_fixture_ssz_static", "tests/official", "-r -d:release -d:chronicles_log_level=DEBUG -d:const_preset=mainnet"
|
||||
|
||||
# State sim; getting into 3rd epoch useful
|
||||
buildBinary "state_sim", "research/", "-r -d:release", "--validators=128 --slots=140"
|
||||
|
@ -280,3 +280,15 @@ else:
|
||||
proc read*(rlp: var Rlp, T: type ValidatorSig): T {.inline.} =
|
||||
let bytes = fromBytes(T, rlp.toBytes)
|
||||
|
||||
proc writeValue*(writer: var JsonWriter, value: VerKey) {.inline.} =
|
||||
writer.writeValue($value)
|
||||
|
||||
proc readValue*(reader: var JsonReader, value: var VerKey) {.inline.} =
|
||||
value = VerKey.init(reader.readValue(string))
|
||||
|
||||
proc writeValue*(writer: var JsonWriter, value: Signature) {.inline.} =
|
||||
writer.writeValue($value)
|
||||
|
||||
proc readValue*(reader: var JsonReader, value: var Signature) {.inline.} =
|
||||
value = Signature.init(reader.readValue(string))
|
||||
|
||||
|
@ -20,5 +20,4 @@ import # Unit test
|
||||
import # Official fixtures
|
||||
./official/test_fixture_shuffling,
|
||||
./official/test_fixture_bls,
|
||||
./official/test_fixture_ssz_uint,
|
||||
./official/test_fixture_ssz_static
|
||||
./official/test_fixture_ssz_uint
|
||||
|
Loading…
x
Reference in New Issue
Block a user