Use /tmp dir for ipfs daemon in tests

This commit is contained in:
haad 2016-11-01 15:11:36 +01:00
parent 38cbb4a284
commit 6606ced53d

View File

@ -22,10 +22,9 @@ IpfsApis.forEach(function(ipfsApi) {
let client, client2, db
let channel = 'abcdefghijklmn'
const cacheFile = path.join(process.cwd(), '/test', 'orbit-db-test-cache.json')
before(function (done) {
ipfsApi.start()
ipfsApi.start({ IpfsDataDir: '/tmp/orbit-db-tests' })
.then((res) => {
ipfs = res
client = new OrbitDB(ipfs, username)