This repository was archived by the owner on Mar 10, 2020. It is now read-only.
This repository was archived by the owner on Mar 10, 2020. It is now read-only.
Speeding up tests #593
Closed
Description
Note: Let's not spend too much effort on speeding up the tests. I just want to reach a baseline of performance where the tests are not timing out anymore (currently, tests time out for me on Ubuntu with a 3.30GHz processor)
Currently, we're doing some inefficient things in the tests that we can quickly fix to make the tests run a lot faster. Some suggestions from @dignifiedquire in IRC:
- run go-ipfs in offline mode so it doesn't connect to the outside world
- stop respawning the go-ipfs node on every test file. This has the downside of removing clearing the state of the daemon on every test file, but maybe we can do this another way?
- run tests concurrently. Would speed up the general suite of tests but might make individual tests slower as many things are executed at the same time.