public static String mkTempDir() {
        return Paths.get(System.getProperty("java.io.tmpdir", "/tmp"), "jraft_test_" + System.nanoTime()).toString();
    }
Test helper

@author boyan (boyan@alibaba-inc.com)

        2018-Apr-11 10:16:07 AM
jraft-extension/bdb-log-storage-impl/src/test/java/com/alipay/sofa/jraft/test/TestUtils.java