[Infra Improvement] Build And Run Unit Tests in Parallel (#4878)

* Support build with Bazel (#4865)

* Support build with Bazel, fixing tests to make them capable of running in concurrency and hermetic.

* Make test cases capable of running in parallel. (#4874)
This commit is contained in:
Zhanhui Li
2022-08-24 20:53:30 +08:00
committed by GitHub
parent 10d291846e
commit 3da7ea9c1b
110 changed files with 1973 additions and 412 deletions
@@ -54,8 +54,9 @@ public class DLedgerControllerTest {
private List<String> baseDirs;
private List<DLedgerController> controllers;
public DLedgerController launchController(final String group, final String peers, final String selfId, String storeType, final boolean isEnableElectUncleanMaster) {
final String path = "/tmp" + File.separator + group + File.separator + selfId;
public DLedgerController launchController(final String group, final String peers, final String selfId,
String storeType, final boolean isEnableElectUncleanMaster) {
final String path = System.getProperty("java.io.tmpdir") + File.separator + group + File.separator + selfId;
baseDirs.add(path);
final ControllerConfig config = new ControllerConfig();