ethereum / sharding

Sharding manager contract, and related software and tests
480 stars 105 forks source link

Accelerate the unittests #92

Closed hwwhww closed 6 years ago

hwwhww commented 6 years ago

What is wrong?

Some tests like tests/contract/test_log_emission.py, test_submit_vote.py, fast_forward is still pretty slow.

How can it be fixed

Not sure yet.

NIC619 commented 6 years ago

Most straightforward solution is probably reducing the NOTARY_LOCKUP_LENGTH in testing.

hwwhww commented 6 years ago

The slowest test - tests/handler/test_shard_tracker.py::test_status_checking_functions looks like: test_status_checking_functions

hwwhww commented 6 years ago

Current fast_forward function: test_fast_forward

hwwhww commented 6 years ago

Modified fast_forward function, tried to use smc_handler.tester.mine_blocks instead of web3.testing: test_fast_forward2