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

Commit 880ae4d

Browse files
test(with-dag-api): some fixup for windows
It is still failing, because it uses IPFS for testing and IPFS is not yet windows ready.
1 parent 77b915e commit 880ae4d

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

test/with-dag-api.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ const pull = require('pull-stream')
1313
const mh = require('multihashes')
1414
const loadFixture = require('aegir/fixtures')
1515
const IPFS = require('ipfs')
16+
const os = require('os')
17+
const path = require('path')
1618

1719
function stringifyMh (files) {
1820
return files.map((file) => {
@@ -171,13 +173,15 @@ describe('with dag-api', () => {
171173
}
172174
}
173175

174-
before((done) => {
176+
before(function (done) {
177+
this.timeout(20 * 1000)
178+
175179
node = new IPFS({
176-
repo: '/tmp/unixfs-test-' + Math.random(),
180+
repo: path.join(os.tmpdir(), 'unixfs-test-' + Math.random()),
177181
start: false
178182
})
179183

180-
node.on('ready', done)
184+
node.on('ready', err => { if (err) console.log('ready', err); done(err) })
181185
})
182186

183187
it('fails on bad input', (done) => {

0 commit comments

Comments
 (0)