From 7ee49f9f9122ac6923fd9d4721d50a6bf69ce46b Mon Sep 17 00:00:00 2001 From: David Dias Date: Fri, 17 Mar 2017 15:58:47 +0000 Subject: [PATCH] test: make repo paths more random --- test/utils/ipfs-factory-daemon/index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/utils/ipfs-factory-daemon/index.js b/test/utils/ipfs-factory-daemon/index.js index a3929a6392..e6bc5ac72c 100644 --- a/test/utils/ipfs-factory-daemon/index.js +++ b/test/utils/ipfs-factory-daemon/index.js @@ -26,7 +26,10 @@ class Factory { } repoPath = repoPath || - os.tmpdir() + '/ipfs-' + Math.random().toString().substring(2, 8) + os.tmpdir() + '/ipfs-' + + Math.random().toString().substring(2, 8) + + '-' + + new Date().toString() let daemon let ctl