activates blockchain test

This commit is contained in:
andri lim 2019-12-06 12:26:56 +07:00 committed by zah
parent 1ffb992674
commit 9596dbc267
2 changed files with 6 additions and 4 deletions

View File

@ -98,4 +98,6 @@ cliBuilder:
./test_op_custom, ./test_op_custom,
./test_state_db, ./test_state_db,
./test_difficulty, ./test_difficulty,
./test_transaction_json ./test_transaction_json,
./test_blockchain_json

View File

@ -673,8 +673,8 @@ proc testFixture(node: JsonNode, testStatusIMPL: var TestStatus, debugMode = fal
if not fixtureTested: if not fixtureTested:
echo getConfiguration().testSubject, " not tested at all, wrong index?" echo getConfiguration().testSubject, " not tested at all, wrong index?"
proc main() = proc blockchainJsonMain*(debugMode = false) =
if paramCount() == 0: if paramCount() == 0 or not debugMode:
# run all test fixtures # run all test fixtures
suite "block chain json tests": suite "block chain json tests":
jsonTest("BlockchainTests", testFixture, skipBCTests) jsonTest("BlockchainTests", testFixture, skipBCTests)
@ -704,7 +704,7 @@ when isMainModule:
echo message echo message
quit(QuitSuccess) quit(QuitSuccess)
main() blockchainJsonMain(true)
# lastBlockHash -> every fixture has it, hash of a block header # lastBlockHash -> every fixture has it, hash of a block header
# genesisRLP -> NOT every fixture has it, rlp bytes of genesis block header # genesisRLP -> NOT every fixture has it, rlp bytes of genesis block header