reintegrate test_rpc back into all_tests

for a long time, test_rpc will crash all_tests
if they are combined together. but now it works fine
This commit is contained in:
jangko 2021-06-22 08:32:32 +07:00
parent 3a826b8406
commit 2269d16c4c
No known key found for this signature in database
GPG Key ID: 31702AE10541E6B9
3 changed files with 235 additions and 232 deletions

View File

@ -47,7 +47,6 @@ proc test(name: string, lang = "c") =
task test, "Run tests":
test "all_tests"
test "test_rpc"
task nimbus, "Build Nimbus":
buildBinary "nimbus", "nimbus/", "-d:chronicles_log_level=TRACE"

View File

@ -99,7 +99,7 @@ cliBuilder:
./test_generalstate_json,
./test_tracer_json,
./test_persistblock_json,
#./test_rpc, # it crash if we combine it here
./test_rpc,
./test_op_arith,
./test_op_bit,
./test_op_env,

View File

@ -114,6 +114,7 @@ proc setupEnv(chain: BaseChainDB, signer, ks2: EthAddress, conf: NimbusConfigura
blockHash: header.hash
)
proc rpcMain*() =
suite "Remote Procedure Calls":
# TODO: Include other transports such as Http
var
@ -399,3 +400,6 @@ suite "Remote Procedure Calls":
rpcServer.stop()
rpcServer.close()
when isMainModule:
rpcMain()