Attempt to make the test suite green

This commit is contained in:
Zahary Karadjov 2019-08-07 06:09:26 +03:00
parent 5ce50b3aca
commit a897ab9c70
No known key found for this signature in database
GPG Key ID: C8936F8A3073D609
3 changed files with 17 additions and 2 deletions

View File

@ -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"

View File

@ -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))

View File

@ -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