Use sequentially named directories for peers in network stress test

This may allow to reuse the directory (to avoid regenerating keys, basically).
This commit is contained in:
Ivan Vilata-i-Balaguer 2016-04-27 12:50:14 +02:00
parent b3932d0bf4
commit 3a7359247b

View File

@ -90,7 +90,7 @@ public class NetworkStressTest {
}
for (int p = 0; p < NPEERS; p++) {
final int peerPort = Utils.findFreeSystemPort();
final File peerDir = new File(tempDir.toFile(), "Bitsquare_peer_" + peerPort);
final File peerDir = new File(tempDir.toFile(), String.format("peer-%06d", p));
final File peerTorDir = new File(peerDir, "tor");
final File peerStorageDir = new File(peerDir, "db");
final File peerKeysDir = new File(peerDir, "keys");