Skip to content
This repository was archived by the owner on Mar 10, 2020. It is now read-only.

test: use os.tmpdir() #178

Merged
merged 2 commits into from
Dec 5, 2017
Merged

test: use os.tmpdir() #178

merged 2 commits into from
Dec 5, 2017

Conversation

richardschneider
Copy link
Contributor

@ghost ghost assigned richardschneider Dec 4, 2017
@ghost ghost added the in progress label Dec 4, 2017
src/swarm.js Outdated
@@ -125,7 +127,7 @@ module.exports = (common) => {
}

function getRepoPath () {
return '/tmp/.ipfs-' + Math.random().toString().substring(2, 8) + Date.now()
return path.join(os.tmpdir(), '.ipfs-' + Math.random().toString().substring(2, 8) + Date.now())
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While you are at it, could you do the same thing I requested at ipfs-inactive/ipfs-performance-profiling#12 (comment)

@daviddias daviddias merged commit d51fba8 into master Dec 5, 2017
@daviddias daviddias deleted the tmpdir branch December 5, 2017 08:11
@ghost ghost removed the in progress label Dec 5, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants