Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

Commit

Permalink
test: make repo paths more random
Browse files Browse the repository at this point in the history
  • Loading branch information
daviddias committed Mar 17, 2017
1 parent f7d61be commit 7ee49f9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/utils/ipfs-factory-daemon/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7ee49f9

Please sign in to comment.