add disableParamFiltering() to both test_generalstate_json and test_blockchain_json

disableParamFiltering() is called in test_all, so its ok when
called via test_all. but when test_generalstate_json or
test_blockchain_json is called independently, and we are using
command line switch, the default param handler from std/unittest
will interfere. hence need to disable it.
This commit is contained in:
jangko 2021-04-24 11:12:10 +07:00
parent a95cec3aa8
commit 639674d341
No known key found for this signature in database
GPG Key ID: 31702AE10541E6B9
2 changed files with 3 additions and 0 deletions

View File

@ -795,6 +795,7 @@ when isMainModule:
echo message
quit(QuitSuccess)
disableParamFiltering()
blockchainJsonMain(true)
# lastBlockHash -> every fixture has it, hash of a block header

View File

@ -231,4 +231,6 @@ when isMainModule:
if len(message) > 0:
echo message
quit(QuitSuccess)
disableParamFiltering()
generalStateJsonMain(true)