erigon-pulse/cmd/rpcdaemon/rpcdaemontest
battlmonstr 0fc99b7c55
rpcdaemon: optimize tests (#4082)
* reuse the generated test blockchain across tests
* copy ChainPack to ensure test isolation

This improves the speed from 10s to 4s.

The package tests timeout can be reduced to 5s:

    go test ./cmd/rpcdaemon/commands -count 1 --timeout 5s
2022-05-06 08:54:26 +07:00
..
test_util.go rpcdaemon: optimize tests (#4082) 2022-05-06 08:54:26 +07:00