Alessio Treglia
59cc6d36c9
improve ResetTestRootWithChainID() concurrency safety (#3291)
* improve ResetTestRootWithChainID() concurrency safety Rely on ioutil.TempDir() to create test root directories and ensure multiple same-chain id test cases can run in parallel. * Update config/toml.go Co-Authored-By: alessio <quadrispro@ubuntu.com> * clean up test directories after completion Closes: #1034 * Remove redundant EnsureDir call * s/PanicSafety()/panic()/s * Put create dir functionality back in ResetTestRootWithChainID * Place test directories in OS's tempdir In modern UNIX and UNIX-like systems /tmp is very often mounted as tmpfs. This might speed test execution a bit. * Set 0700 to a const * rootsDirs -> configRootDirs * Don't double remove directories * Avoid global variables * Fix consensus tests * Reduce defer stack * Address review comments * Try to fix tests * Update CHANGELOG_PENDING.md Co-Authored-By: alessio <quadrispro@ubuntu.com> * Update consensus/common_test.go Co-Authored-By: alessio <quadrispro@ubuntu.com> * Update consensus/common_test.go Co-Authored-By: alessio <quadrispro@ubuntu.com> |
6 years ago | |
---|---|---|
.. | ||
bench_test.go | improve ResetTestRootWithChainID() concurrency safety (#3291) | 6 years ago |
mempool.go | mempool: correct args order in the log msg (#3221) | 6 years ago |
mempool_test.go | improve ResetTestRootWithChainID() concurrency safety (#3291) | 6 years ago |
metrics.go | add "chain_id" label for all metrics (#3123) | 6 years ago |
reactor.go | mempool: enforce maxMsgSize limit in CheckTx (#3168) | 6 years ago |
reactor_test.go | improve ResetTestRootWithChainID() concurrency safety (#3291) | 6 years ago |
wire.go | alias amino imports (#3219) | 6 years ago |