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

Commit 6bc5b2c

Browse files
committed
Merge pull request #30 from ipfs/fix-tests
make tests pass
2 parents 69f7191 + 433ae8a commit 6bc5b2c

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"Travis Person <[email protected]>"
1717
],
1818
"devDependencies": {
19-
"ipfsd-ctl": "0.2.3",
19+
"ipfsd-ctl": "0.3.0",
2020
"mocha": "^2.2.5",
2121
"pre-commit": "^1.0.6",
2222
"standard": "^3.3.2"

test/test.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,11 @@ describe('ipfs node api', function () {
1313
this.timeout(20000)
1414
ipfsd.disposable(function (err, node) {
1515
if (err) throw err
16-
ipfs = ipfsApi(node.opts['Addresses.API'])
17-
done()
16+
node.startDaemon(function (err, ignore) {
17+
if (err) throw err
18+
ipfs = ipfsApi(node.apiAddr)
19+
done()
20+
})
1821
})
1922
})
2023

0 commit comments

Comments
 (0)